Linux – SSH passwordless login in Linux
Posted by Josh on Wed 9 Aug 2006Categories: Linux , SSH - 1 Comment
This tutorial will help you save time administering your servers without having to login to provide a username and password. I use it to execute remote commands or scripts on a remote server.
Enter all commands on the client machine.
[root@client]#ssh-keygen -t rsa
[root@client]#scp ~/.ssh/id_rsa.pub server:~/.ssh/client.pub
[root@client]#ssh server "cat ~/.ssh/client.pub >> ~/.ssh/authorized_keys2"
[root@client]#ssh server
This should automatically log you into the server without asking for a password. This tip opens many doors to linux administration. Execute commands remotely on another server, schedule network backups, the list goes on…
July 8th, 2008 at 3:40 pm
How can one configure 3 Cisco 2960 switches using Dynamips or GNS3, the switches link with thier Gigabit Ethernet interfaces?