Host based authentication works without prompting passwords and installing user's pub keys
Do only step 1 and replace .shosts
with .rhosts
to use rsh
which is safe in Kerberos environment.
1 Add clients's host name and user name of a user who wants access to server.
server$ echo '<client's hostname> <user name>' >> ~/.shosts
2 Append client's public host keys to the server's known_hosts.
client$ cat /etc/ssh/ssh_host_rsa_key.pub | ssh user@server 'cat >> ~/.ssh/known_hosts'
3 Tell server to not reverse look up client's ip to find client's host name.
server# echo 'HostbasedUsesNameFromPacketOnly yes' >> /etc/ssh/sshd_config
.
4 Ask server not to ignore .shosts file.
server# echo 'IgnoreRhosts no' >> /etc/ssh/sshd_config
server# service sshd reload
scp
justssh
. – devnull Feb 06 '15 at 17:45sshpass
and "key based authentication". You could even install expect but you are just promoting a Xy problem and you seems to not even care changing your mind. These are the 3 only options you have. Deal with it. – Jan 19 '16 at 10:47