Password less SSH without user directory?The folder .ssh should be stored in a user directory as far as I understood.ServerA: Linux without /home/usersServerB: Linux with /home/usersclient:  Linux/mac etc...Cases:client password-less ssh to ServerB, no problemclient password-less ssh to ServerA, no problemSeverA password-less ssh to ServerB, problem!If there is no actual user directories in ServerA how public key for each user without user directory existing?Or is there other ways to safely ssh to ServerB from ServerA?
passwordless ssh setup without user directory
ssh;security
it is possible to change the authorized keys file location by modifying or adding an entry to /etc/ssh/sshd_config file as such:AuthorizedKeysFile /etc/ssh/.authorized_keysdon't forget to restart sshd after the modification of course