Home Enable ssh passwordless login
Post
Cancel

Enable ssh passwordless login

Install sshpass package

To install sshpass package on the source server from which to enable ssh passwordless login to remote servers:

1
-bash-4.2# rpm -ivh sshpass-1.06-1.el7.x86_64.rpm

Enable ssh passwordless login to remote servers

To enable ssh passwordless login to a large amount of remote servers, we can use the following command to automate without needs of providing password for each server.

1
2
3
4
-bash-4.2# for n in `seq 0 239`
do
    sshpass -p "password" ssh-copy-id -i /root/.ssh/id_rsa.pub -o StrictHostKeyChecking=no Client-hostname$n
done
This post is licensed under CC BY 4.0 by the author.

Tuning kernel parameters in Docker

Network bonding

Comments powered by Disqus.