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…

 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • Google
  • Live
  • Reddit
  • StumbleUpon
  • Technorati

Random Posts