Managing Multiple SSH Keys

From Do you speak Drupalish? Featured Drupal wiki-like documentation
Jump to: navigation, search

Easy

Connect from

vi /etc/ssh/ssh_config

Host 192.168.0.7 test
    HostName 192.168.0.7
    IdentityFile ~/.ssh/realname_rsa
    User remoteusername
    Port xxxx



Host myother realname2.example.org
    HostName realname2.example.org
    IdentityFile ~/.ssh/realname2_rsa
    User remoteusername

Tips

  • check with hostnamewhere are you

Connect to

Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): /home/limited/.ssh/id_rsa

  • see pattern
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile      .ssh/authorized_keys