Skip to content

Instantly share code, notes, and snippets.

@kekru
Created June 3, 2019 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kekru/f6bd818c54399a594f7a0dbea7cde78c to your computer and use it in GitHub Desktop.
Save kekru/f6bd818c54399a594f7a0dbea7cde78c to your computer and use it in GitHub Desktop.
ssh commands

SSH commands

Find out own SSH fingerprint:

ssh-keygen -lf /etc/ssh/ssh_host_ecdsa_key.pub

Add own public key to remote server for later verification:

ssh-copy-id -i ~/.ssh/id_rsa.pub me@example.com
# then type in password

fix Failed to add the host to the list of known hosts (/home/me/.ssh/known_hosts).

chmod 600 /home/me/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment