0
root@myhost:/# ssh -i /opt/id_rsa.pub azureuser@myhost2.cloudapp.net
Enter passphrase for key '/opt/id_rsa.pub':
azureuser@myhost2.cloudapp.net'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/id_rsa.pub azureuser@myhost2.cloudapp.net 'tar -xvf - -C /opt/somefolder' > /dev/null 2>&1 &

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

Somebody
  • 364
  • 1
  • 6
  • 17
  • 1
    See: http://serverfault.com/questions/182322/why-does-my-ssh-passphrase-work-with-plink-and-not-ssh/182324#182324 – Zoredache Jan 05 '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 06 '13 at 11:27

1 Answers1

2

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.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972