Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
root@myhost:/# ssh -i /opt/
Enter passphrase for key '/opt/':'s password:

I have created key pair without passphrase, is it possible to get rid of passphrase prompt while connecting to remote server?

I would like to use key connection while using this command:

tar -c /opt/lampp/htdocs/somehost | ssh -i /opt/ 'tar -xvf - -C /opt/somefolder' > /dev/null 2>&1 &

So that files transfer continue even if terminal have lost connection.

share|improve this question
See:… – Zoredache Jan 5 '13 at 23:14
Based on your output the passphrase is being ignored and is falling back to password authentication. It looks like there is a problem with your converted key if you believe it to have no passphrase. – James O'Gorman Jan 6 '13 at 11:27
up vote 2 down vote accepted

You can remove (or change) the passphrase using the -p option to ssh-keygen. For example:

ssh-keygen -f /opt/id_rsa -p

Press Enter at the new passphrase prompt to remove the passphrase.

share|improve this answer
I haven't passphrase in the first place. Like i said, i have used windows putty keygen and generated keys without passphrase. – Somebody Jan 5 '13 at 22:31
After ssh-keygen -f /opt/ -p i'm getting this: Enter old passphrase: Bad passphrase. – Somebody Jan 5 '13 at 22:33
Then you need to enter the correct passphrase, or use some utility which generates correct keys (like ssh-keygen). – Michael Hampton Jan 5 '13 at 22:35
The fact is, that i use these keys to connect via putty and it doesn't ask me for passphrase... – Somebody Jan 5 '13 at 22:40
@Somebody how did you convert the keys from putty's format to ssh's format? – DerfK Jan 6 '13 at 0:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.