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 ?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top