Make pass wordless ssh (script for password less ssh)
Writter: Anuj Borah
Email: anujborah1@gmail.com
#!/bin/bash
echo "Welcome!!! I am gonna make some passwordless ssh connection ... coz i dont like passwords"
clear
echo "Gime me the ip of remote server u wana make password less ....."
read w
echo "Now givw me the any existing user of remote server ....."
read e
clear
echo "I will make sure that ur info is correct .... "
ssh $e@$w mkdir -p .ssh
clear
echo "Now i gonna start my work ... here u need to press "Enter" only when ask ..........."
ssh-keygen -t rsa
cd
cd .ssh
clear
echo "Just put the info (username and password) for the last time ...."
scp id_rsa.pub $e@$w:/home/$e/.ssh/authorized_keys
clear
echo "checking the passwordless connectivity.....Type "exit""
ssh $e@$w
clear
echo ":) . Thanks have a nice day !! see u on facebook `firefox https://m.facebook.com/Mr.Anuj2223`"
exit