2013-08-22 03:34:11 +02:00
|
|
|
# To copy a key to a remote host:
|
2013-08-11 21:37:11 +02:00
|
|
|
ssh-copy-id username@host
|
|
|
|
|
2013-08-22 03:34:11 +02:00
|
|
|
# To copy a key to a remote host on a non-standard port:
|
2013-08-11 21:37:11 +02:00
|
|
|
ssh-copy-id username@host -p 2222
|
2013-08-28 14:06:26 +02:00
|
|
|
|
|
|
|
# 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"
|