I'm only starting to learn SSH.
Is it possible to have per-host
authorized_keys file (eg
/etc/ssh/authorized_keys) to allow passwordless login for every user of the given host?
To test I've tried to connect (to a server having my public keys in
~/.ssh/authorized_keys passed by
ssh -i /etc/ssh/ssh_host_rsa_key.pub, although without success.
I'm not sure if the -i switch can be valid for public keys, but I've successfully tried (by checking on the remote side)
ssh-copy-id -i <server> to pass the specified public key to the server to append to its user's
Is it mandatory to have
~/.ssh for every user, or is it also possible to have system-wide keys and files (such as
authorized_keys) applicable to every user on the system?
I think per-host authentication should be possible as per-user is, but I am not certain.