Hi,
I have a batch script which should run thru ssh without any password authentication.I got this information and set it up like this only.
user@host1> cd; mkdir .ssh
user@host1> ssh-keygen -t rsa -N '' -f .ssh/id_rsa
user@host1> scp .ssh/id_rsa.pub user@host2:user_host1_key #requires password
user@host1> ssh -l user host2 'mkdir .ssh; cat user_host1_key >> .ssh/authorized_keys' #requires password
user@host1> ssh -l user host2 'ls -la' #Does NOT require password
This is working from one server to another.But when I try the same thing from second to one,it is still asking me for the password.
Do I need to make any changes in ssh_config or sshd_config file and what are the changes ???
Thanx...
I have a batch script which should run thru ssh without any password authentication.I got this information and set it up like this only.
user@host1> cd; mkdir .ssh
user@host1> ssh-keygen -t rsa -N '' -f .ssh/id_rsa
user@host1> scp .ssh/id_rsa.pub user@host2:user_host1_key #requires password
user@host1> ssh -l user host2 'mkdir .ssh; cat user_host1_key >> .ssh/authorized_keys' #requires password
user@host1> ssh -l user host2 'ls -la' #Does NOT require password
This is working from one server to another.But when I try the same thing from second to one,it is still asking me for the password.
Do I need to make any changes in ssh_config or sshd_config file and what are the changes ???
Thanx...