Strict Standards: Declaration of RSS::DoAction() should be compatible with CMSModule::DoAction($name, $id, $params, $returnid = '') in /home/xandaorg/public_html/modules/RSS/RSS.module.php on line 0

Strict Standards: Non-static method PageInfoOperations::LoadPageInfoByContentAlias() should not be called statically in /home/xandaorg/public_html/index.php on line 154

Warning: Cannot modify header information - headers already sent by (output started at /home/xandaorg/public_html/modules/RSS/RSS.module.php:0) in /home/xandaorg/public_html/index.php on line 299
Xanda - /dev/project - Use multiple SSH keys for password less login
  • Generate first ssh key

Type the following command to generate your first public and private key on a local workstation. Next provide the required input or accept the defaults. Please do not change the filename and directory location.

workstation#1 $ ssh-keygen -t rsa

Finally, copy your public key to your remote server using scp

workstation#1 $ scp ~/.ssh/

  • Generate next/multiple ssh key

Login to 2nd workstation

Download original the authorized_keys file from remote server using scp:

workstation#2 $ scp ~/.ssh

Now create the new pub/private key:

workstation#2 $ ssh-keygen -t rsa

Now you have new public key. APPEND this key to the downloaded authorized_keys file using cat command:

workstation#2 $ cat ~/.ssh/ >> ~/.ssh/authorized_keys

Finally upload authorized_keys to remote server again:

workstation#2 $ scp ~/.ssh/

You can repeat step #2 for each user or workstations for remote server.

  • Test your setup

Now try to login from Workstation #1, #2 and so on to remote server. You should not be asked for a password:

workstation#1 $ ssh

workstation#2 $ ssh

[The content of this page is taken from Cyberciti. Feel free to visit the original site because who knows the original author might update the content from time to time]