Per host ssh priv key.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 03 May 2010 20:56:35 +0300
changeset 375 14c1b180f3f3
parent 374 cdc768ae8024
child 376 9d0020009266
Per host ssh priv key.
ssh.rst
--- a/ssh.rst	Mon May 03 20:44:46 2010 +0300
+++ b/ssh.rst	Mon May 03 20:56:35 2010 +0300
@@ -48,6 +48,17 @@
   IdentityFile ~/.ssh/my_dsa
   IdentityFile ~/.ssh/another_dsa
 
+or
+
+  Host host1                   # alias, that user provide at CLI
+  HostName host1.example.com   # real host name to log into
+  User iam
+  IdentifyFile ~/.ssh/iam_priv_dsa
+  Host host2                   # alias, that user provide at CLI
+  HostName 192.168.1.2         # real host IP to log into
+  User admin
+  IdentifyFile ~/.ssh/admin_priv_dsa
+
 * Installing.
 
 ** Windows.