Answer the question
In order to leave comments, you need to log in
How to copy ssh key to another computer?
Problem following - on the server in ssh access for root is closed. The computer from which I accessed the server is now with a different OS, but the .ssh folder remains. Simply copying the folder to the current computer and setting 600 rights to id_rsa did not help, it still asks for a password. How else can you try to log in using the old key?
UPD. As a result, the hoster removed the access ban for root and was able to log in.
Answer the question
In order to leave comments, you need to log in
Regenerate the key pair on the client and copy the public key to the server in any convenient way.
It will not work differently, because. you yourself wrote that the keys on the client are destroyed. And do not copy directories and in particular private keys.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question