I'm trying to establish a connection through Plink, after that I want to ssh user@server
and then enter a password. I did the following:
plink.exe -ssh user1@server_ip1 -pw password1 -t < "cmd.txt"
in the cmd.txt there are the below commands (I tried both with and without the semicolons):
ssh user2@server2;
password2
Everything works fine until the step of password2
. The password is not entered. I tried the below (with and without the semicolons):
ssh user2@server2;
password2;
echo hello2;
to make sure an enter is pressed, but it didn't work as well.