3 Solutions collect form web for “Is it Possible to transfer the Git SSHKey from one system to another”

The ssh private key is not tied to a machine and you can just copy it from one machine to another and should be able to ssh ( and hence use git) to the server that has your public key. You do not have to recreate the keys and replace with the copies etc, but even what you have done is fine from the keys point of view.

The error you are getting is ssh: connect to host git.xyz.com port 22: connection timed out fatal which seems to suggest that the box doesn’t have access to the server.

As mentioned @manojlds, you can copy ssh keys. I have personally done that across development machines.

The connection time seems to be due to the ssh-daemon not running. To ensure you can connect to the machine please run the following diagnostics

ps -ef | grep sshd

You should get

root 726 1 0 08:07 ? 00:00:00 /usr/sbin/sshd -D

If sshd is running, double check the permissions on your keys and forcibly set to 0700.