sshpass

sshpass is used to non interactively log in to remote SSH server and execute commands. It can use a password from a file, environment variable, or from a command-line argument. To install sshpass on RHEL/CentOS, run yum install sshpass On Debian/Ubuntu apt install sshpass Example boby@sok-01:~$ sshpass ssh -o StrictHostKeyChecking=no -p 3333 root@ok.serverok.in “uptime” 02:16:14 … Read more