Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Can I add SSH Key?
How can I add Linux SSH keys of the remote server to my local Linux box. The SSH server IP address is
What distro are you using?
Well. There are different ways to accomplish that but you can use following command. ssh-copy-id [email protected]
I'm not sure if it's entirely clear what you want to do, but generally the first time you connect to a server through SSH it will ask you if you want to accept the server's key. It will remember this until either you purge the key or the server's key changes, in which case it will ask again as a security precaution.

If you are talking about copying all the public keys that are allowed to connect to the server, each user's folder has a .ssh/authorized_keys file with public keys allowed to connect as that user if any keys are set up for that user. This is also where you would copy your public key on the remote server if you are trying to give yourself access to the server through ssh.
I assume that you want to use (user) key-based authentication with a remote server? If that is the case, you don't add the keys to your machine, you add your keys to your account on the server.

99% of the time, your primary keypair will be ~/.ssh/id_rsa and ~/.ssh/ You will want to take the contents of ~/.ssh/ from your local machine, and add it to ~/.ssh/authorized_keys on the remote machine. If that file or its folder do not exist on the remote machine, you can create them.

If the aforementioned key files (on your local machine) do not exist (yet), you can run the following command (on your machine), and follow the prompts -

i think ssh-copy-id is the tool u are looking for. but you can always copy it manually
Thank you for your friends

Possibly Related Threads...
Thread Author Replies Views Last Post
  VM Kali headless to access via ssh witouth open Virtualbox samsep10l 3 325 03-18-2019, 11:46 AM
Last Post: veloxia

Users browsing this thread: 1 Guest(s)