Short question: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 PCto connect without using a password? Is it enough information to do that?Details:My OS: XUbuntu 14.04It'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 rsa entering the passphrase. However each time Igenerated 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; Idon'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 Itried to use ~/.ssh/config file, but in order to confirm that problem lies within the key, Ibacked it up, cleared and now I'm generating the keys into ~/.ssh/id_rsa.I tried to find whether I should take completely different steps (not generate it using ssh-keygen -t rsa but by another way), however I was unable to find a thing.Additional informationI 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.
SSH: how to connect withou password knowing only passphrase?
ssh;public key authentication
You can't derive a private key from a passphrase. The passphrase is used to encrypt the private key; the private key is needed to have an encrypted conversation with the remote server. You don't have enough information to connect without a password. Also, it's very bad security practice to share a private key. A better method is to generate your own key pair and add your public key to the remote server at ~/.ssh/authorized_keysIf you could SSH in you could do this yourself, but since you can't, someone else would need to do it for you.