Pergunta

I have a ssh key in a dev environment for GIT access . Now I am changing my dev environment. So Is it safe to copy the ssh key or I should generate one ?

Foi útil?

Solução

The usual approach is for ssh private keys to never ever leave the machine on which they are generated. So the usual approach is to generate new one. It's simple and the git gui even has a menu for it.

Obviously you have to upload the public part of the new key to the server as an authorized key. That's usually simple as well.

That said the key is just a file (usually .ssh/id_rsa; the name depends on selected type) and can be copied.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top