Basic SSH Server Configuration SSH Server

Home » Computer Articles » Linux » Basic SSH Server Configuration SSH Server
May 23, 2008 Linux No Comments

SSH Server Configuration

Edit /etc/sshd_config (vi /etc/sshd_config)

Remove everything in the file and paste in stuff below.

Port 22
Protocol 2
ListenAddress 192.168.1.1 Change to the ip address of the Server.
HostKey /etc/ssh/ssh_host_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
SyslogFacility AUTHPRIV
LogLevel INFO
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
AllowUsers "name"
IgnoreRhosts yes
IgnoreUserKnownHosts yes
PermitEmptyPasswords no
X11Forwarding no
PrintMotd yes
UsePrivilegeSeparation yes
Subsystem sftp /usr/libexec/openssh/sftp-server

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.