Multiply private keys for ssh.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 03 May 2010 20:40:04 +0300
changeset 372 1a1b0f19eb51
parent 371 0664ebefacb1
child 373 c390029b4325
Multiply private keys for ssh.
ssh.rst
--- a/ssh.rst	Mon May 03 20:25:55 2010 +0300
+++ b/ssh.rst	Mon May 03 20:40:04 2010 +0300
@@ -23,6 +23,8 @@
   $ ssh $user@$host
   $ ssh $user@$host:$port
 
+  $ ssh -i ~/.ssh/my_dsa_key $user@$host
+
 or
 
   $ ssh -l $user $host
@@ -32,6 +34,20 @@
 
   $ ssh -X $user@$host
 
+** Multiply private keys.
+
+ssh try use all listen keys:
+
+  $ ssh -i ./priv1 -i ./priv2 $user@$host
+
+or place in ~/.ssh/config:
+
+  IdentityFile ~/.ssh/identity # standard search path for protocol ver. 1
+  IdentityFile ~/.ssh/id_dsa   # standard search path for RSA key protocol ver. 2
+  IdentityFile ~/.ssh/id_rsa   # standard search path for DSA key protocol ver. 2
+  IdentityFile ~/.ssh/my_dsa
+  IdentityFile ~/.ssh/another_dsa
+
 * Installing.
 
 ** Windows.