Parobalth
  • Home
  • Categories
  • Tags
  • Archives

ssh: key-authentification

How-to transfer your public ssh key to another computer for ssh shared keys authentification: Use the command ssh-copy-id

https://wiki.debian.org/SSH#Using_shared_keys

EDIT 2018: I tried to transfer my public key to a new machine and failed because I didn’t get the syntax of $remote_user@remote_host (I literally entered the “$”). So to remind a future me the correct command for user foo on remote host foobar is:

ssh-copy-id -i ~/.ssh/id_rsa.pub foo@foobar

If you have any questions, suggestions, thoughts and comments please feel free to email me.


License of this blog post:

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


Published

Oct 10, 2016

Last Updated

Feb 16, 2018

Category

Computer

Tags

  • config 7
  • debian 11
  • shared-keys 1
  • ssh 3

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor