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.