How to adequately add identical public-private ssh key to a new client machine?

by Jorge Johanny Sáenz Noval   Last Updated October 09, 2019 21:00 PM

I have generated private and public key pair files (id_rsa, id_rsa.pub) using ssh-keygen command in a machine A, which is a client. I have tested my connection to server in machine A and it is working fine. Now I have copy those files using cp command to a machine B (~/.ssh folder) and I can't login anymore. Once I deleted my public key file, I can successfully login into server. However, my X2goclient can't connect and prompt up multiple times the paraphrase window with and without the public key.

What is the adequate procedure to copy those keys from client to client (Machine A to Machine B)?

Thanks!



Related Questions



How to get a .pem file from ssh key pair?

Updated October 19, 2017 19:00 PM

How come a private key can decrypt a message?

Updated October 28, 2017 16:00 PM

How to tell SFTP which public key to use?

Updated April 02, 2018 23:00 PM