I got a task to update a git repository. Information I received is following: host, port, user name and ssh key's passphrase with information that key's type is rsa. How can configure PC to connect without using a password? Is it enough information to do that?
- My OS: XUbuntu 14.04
- It's clear that the passphrase is passphrase for ssh key, not password.
- I do not have access to the server. I cannot configure
~/.ssh/on it any way.
- I did not receive the key itself.
Long story / how I tried to solve this problem:
- Google it. I generated ssh key using
ssh-keygen -t rsaentering the passphrase. However each time I generated a key, it was different which leads me to another (sub) question: is it possible to get ssh-rsa key knowing only the passphrase? By other words, did I receive too little information? (Problem is that my knowledge about ssh and cryptography is too small and I'm unable to find on the Google answer to this additional question; I don't know - and cannot find the information - whether the key is based on the passphrase (like in case of hashes) or whether it's additional or secondary information (like in case of hashes with salt or similar to encrypting with TrueCrypt which encrypts only header with the password and whole disc is encrypted with a key stored in the header).)
- Originally I tried to use
~/.ssh/configfile, but in order to confirm that problem lies within the key, I backed it up, cleared and now I'm generating the keys into
- I tried to find whether I should take completely different steps (not generate it using
ssh-keygen -t rsabut by another way), however I was unable to find a thing.
- I also received a password which works. I can connect to the git repository with it, but I'm looking for a way to work with just key.
- It's not allowed to connect to interactive shell using ssh. Only git over ssh is supported.