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

[Solved] How to Automate SSH Login With Password?


myTechMint
(@mytechmint)
Member Moderator
Joined: 1 year ago
Posts: 31
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