Skip to content

Instantly share code, notes, and snippets.

@algotrader-dotcom
Last active October 6, 2015 08:52
Show Gist options
  • Save algotrader-dotcom/83e397d139c76d85910c to your computer and use it in GitHub Desktop.
Save algotrader-dotcom/83e397d139c76d85910c to your computer and use it in GitHub Desktop.
Use ssh-copy-id on a different port
$ ssh-copy-id "user@host -p 6842"
OR
$ cat /home/tim/.ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment