From e963af111c18238bd5cc78c8401090a2b9cf3868 Mon Sep 17 00:00:00 2001 From: Matthieu Keller Date: Wed, 28 Aug 2013 14:06:26 +0200 Subject: [PATCH] To copy a key to a remote host on a non-standard port with non-standard ssh key --- cheatsheets/ssh-copy-id | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheatsheets/ssh-copy-id b/cheatsheets/ssh-copy-id index 217479c..604c824 100644 --- a/cheatsheets/ssh-copy-id +++ b/cheatsheets/ssh-copy-id @@ -3,3 +3,6 @@ ssh-copy-id username@host # To copy a key to a remote host on a non-standard port: ssh-copy-id username@host -p 2222 + +# To copy a key to a remote host on a non-standard port with non-standard ssh key: +ssh-copy-id ~/.ssh/otherkey "username@host -p 2222"