This directory contains all the SSH daemon configuration files, public and public keys. The defaults are both secure and flexible and rarely need any changing. The only exception is a change to /etc/ssh/sshd_config file if you want to restrict logins for root user.
Quick way to restart the ssh daemon. Use full path to do this.
/etc/init.d/sshd restart
/etc/ssh/ssh_config
Text file with the configuration of SSH client.
/etc/ssh/sshd_config
Text file with the configuration file for SSH daemon. An important setting in this file is PermitRootLogin=Yes/No. You can quickly check this with a grep on the file.
grep permit /etc/ssh/sshd_config
~/.ssh/known_hosts
Allow or deny SSH for specified users:
add the following lines to the sshd_config file
AllowUsers user1 user2 user3 ….
Deny Users user1 user2 user3 ….
A text file that stores the RSA keys for known hosts. If we rebuild a host and then reconnect to it over SSH we may be prevented if the known_hosts file has cached the old key. I think SCP (secure copy) uses RSA keys as well as SSH sessions. Note this file is maintained on a per-user basis.
|