Saturday, January 29, 2011

ssh with pass word and login name

# this scrip will auto login without asking anything
#first intall this pakage to work on your system
sudo apt-get install sshpass

sshpass -p [yourpassword] ssh [yourusername]@[host] -l root -o StrictHostKeyChecking=no

No comments:

Post a Comment