Need help in configuring /etc/host.equiv file. Though i configure the /etc/hosts.equiv file to prevent users from connecting remotely to the local server " -host" in /etc/hosts.equiv file, it allows the users to login from remote machine. we don't have .rhosts file on the local server. Could you please let me know, how to configure the /etc/hosts.equiv file to prevent login from remote hosts.
Also please let me know, how to configure /etc/hosts.equiv to allow login from remote server without entering password.
If you want to log on to a system/user combination from another system/user combination without using a password then generate ssh-keys and put them into the file ~/.ssh/authorized_keys on the target system.
Example: you want userA@systemA to be able to log on as userB@systemB without using a password.
create a ssh-key as userA@systemA using the "ssh-keygen" utility. Enter no password when asked for one (just press <ENTER>)
Log on as userB at systemB, create a directory ".ssh" (if it is not already there) and create a file "authorized_keys" in this directory (if it is not there already).
3) copy the content of "~/.ssh/id_rsa.pub" (the name can vary slightly depending on the crypto-algorithm you use) from userA@systemA to the file userB@systemB:~/.ssh/authorized_keys
WARNING: beware of line breaks when copying the key via X-copy&paste. Remove them in case there are some.
Save the file. You should now be able to log on from userA@systemA to userB@systemB without passwords. This extends to file transfers with scp.