Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to transfer your identity.pub to the remote machine’s authorized_keys?

Answer:

While you can ssh into the remote machine and edit the authorized_keys file, it is easier with the following command.

# ssh-copy-id -i identity-rsa-dsa.pub user@remote-server

  1. Edit a remote file with vim over SSH
  2. Copy file to remote server using scp
  3. Running a command on the remote server
  4. Block a remote IP Address using iptables
  5. Fix the warning of: Remote Host Identification Has Changed error and solution

One Response to “How to transfer your identity.pub to the remote machine’s authorized_keys?”

  1. [...] will be prompted to login if you don't have proper ssh key in the remote server, and after finishing editing the file, you will quit the ssh session [...]

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>