I was trying to send files from machine A to machine B.
For that, I created a public-private key pair using
ssh-keygen -t rsa in machine A. Then I sent the
id_rsa.pub file to machine B and I added that to the
authorized_keys file there.
It was working fine while sending from machine A to B, I was not being prompted for the password.
While doing some other experiments with this I accidently deleted the
authorized_keys file. Now again when I started the above procedure its not working. How to recover that? I am also interested to know is it possible to send files both ways round without being prompted for password?