I am very New to Git. My client asket me to install git in my system and told me to pass the ssh key (id_rsa.pub ).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.)
ssh-keygen -t rsa -C "your_email@youremail.com"
(same email id used as on Windows OS)git clone git@git.xyz.com:x2.git
But no luck.
When i try:
git clone git@git.xyz.com:x2.git
Cloning into x2...
ssh: connect to host git.xyz.com 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 git.xyz.com port 22: connection timed out fatal
which seems to suggest that the box doesn't have access to the server.