Personal tools
You are here: Home Linux I/O A simple ssh server configuration

A simple ssh server configuration

The following is a cut down ssh daemon configuration that supports public key authentication (only)

Add public keys to "~<user>/.ssh/authorized_keys2" for users as required. Change the sshd configuration as below, and restart the ssh daemon.


Protocol 2
PermitRootLogin  no
PasswordAuthentication  no
ChallengeResponseAuthentication no
KeepAlive no
ClientAliveInterval 15
ClientAliveCountMax 9
SyslogFacility AUTHPRIV
Subsystem       sftp    /usr/libexec/openssh/sftp-server


Document Actions