good day, I tried to use the format below for my plink and when I went to login with the username I changed the password on it didn’t accept the new password. so my question is, when using “(echo.password1 & echo.password1)” what is it sending? Is it sending “password1” as the new password or is it “password1 “?
Below is the block code i used, changing my username and password
(echo.mypassword & echo.password1 & echo.password1) | plink -ssh -batch firstname.lastname@example.org -pw mypassword "sudo passwd admin"
here is the output. NOTE on the user usroob, i have sudo setup so I don’t need to put in my password.
C:UsersThomas Bonar>(echo.password1 & echo.password1) | plink -ssh -batch email@example.com -pw mypassword "sudo passwd admin" New password: Retype new password: passwd: password updated successfully C:UsersThomas Bonar>plink -ssh firstname.lastname@example.org -pw password1 Using username "admin". Access denied email@example.com's password: