Is it possible to transfer the Git SSH key from one system to another


I am very New to Git. My client asket me to install git in my system and told me to pass the ssh key ( ).I transfered the key and he registered, after that we were able to download the app.

Then we decided to move to Fedora 14 (Linux). We installed git again and we transferred the key again for registration in server to the client. But now the client mentioned we can use the same key.

Is it possible to use the same key?

I tried the below steps: (Once git got installed in Fedora.)

  1. ssh-keygen -t rsa -C "[email protected]" (same email id used as on Windows OS)
  2. Replaced all the 3 files created with the copy of the 3 files (id_rsa, and known_hosts from Windows install earlier)
  3. Tried git clone [email protected]:x2.git

But no luck.

When i try:

git clone [email protected]:x2.git
Cloning into x2...
ssh: connect to host port 22: connection timed out
fatal: The remote end hung up unexpectedly.

Can somebody help me in understanding and resolving this issue? Is there some other problem locking access?

Thanks in advance.

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 port 22: connection timed out fatal which seems to suggest that the box doesn't have access to the server.