Skip to content

Instantly share code, notes, and snippets.

@martianyi
Last active May 16, 2018 04:04
Show Gist options
  • Save martianyi/6baf9a9bb4451881d4bd25426b684d45 to your computer and use it in GitHub Desktop.
Save martianyi/6baf9a9bb4451881d4bd25426b684d45 to your computer and use it in GitHub Desktop.
SSH related commands

copy ssh key to server

ssh-copy-id -i ~/.ssh/mykey user@host

fix warning about ECDSA host key

ssh-keyscan -t ecdsa server.domain >> ~/.ssh/known_hosts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment