Shell Script for SSH Without Password in Linux/RHEL/Centos/Ubuntu

#!/bin/bash#Script for passwordless authentication for remote host #Author: explinux#Date:19june2020echo “enter ip : “read ipecho “enter user”read userssh $user@$ip mkdir -p .sshcat .ssh/id_rsa.pub | ssh $user@$ip ‘cat >> .ssh/authorized_keys’ssh $user@$ip “chmod 700 .ssh; chmod 640 .ssh/authorized_keys”ssh $user@$ip How to use the script:  Related Article : ssh Without Password in Linux 2020.html use vi editor and create a file …

Shell Script for SSH Without Password in Linux/RHEL/Centos/Ubuntu Read More ยป