How to Automate SSH...
 
Share:
Notifications
Clear all

[Solved] How to Automate SSH Login With Password?


b47cdd59abc15c211252e00edc08c802?s=80&d=retro&r=g
(@mytechmint)
Member Moderator
Joined: 2 years ago
Posts: 52
Topic starter  

[Answer]

Option 1 Using sshpass

sudo apt-get install sshpass
sshpass -p your_password ssh user@hostname

Option 2 Using plink

sudo apt-get install plink

plink username@hostname -pw your_password

 

Note: username example "ubuntu" and hostname can be your host IP address.


Quote