'sshpass' command can be used to provide password runtime while logging into a server over ssh.
Installation
O/S - Centos 6.5
Download rpm -
wget http://pkgs.repoforge.org/sshpass/sshpass-1.05-1.el6.rf.x86_64.rpm
Install -
rpm -ivh sshpass-1.05-1.el6.rf.x86_64.rpm
Run -
sshpass -p 'XXXXX' ssh username@server.test.com
not working for oracle linux
ReplyDeleteThank you for your input.
ReplyDeleteFor Oracle Linux, Please try below :
$ wget http://sourceforge.net/projects/sshpass/files/latest/download -O sshpass.tar.gz
$ tar -xvf sshpass.tar.gz
$ cd sshpass-1.06
$ ./configure
# sudo make install
this also doen't work
DeleteThis worked thanks
ReplyDelete