It is recommended that you use public key based authentication. OpenSSH server supports various authentication. User private/pub keys and client config – $HOME/.ssh/ directory.Client config file – ssh_config (located in /etc/ssh/).Server config file – sshd_config (located in /etc/ssh/).