Sonora Communications, Inc.

  • Increase font size
  • Default font size
  • Decrease font size

SSH Remote Access

E-mail Print PDF

SME Server Remote Access Via SSH

If you want to enable SSH access for remote maintenance, you need to use the Server-Manager -> Security -> Remote Access panel to enable it.

SSH Remote Access Security

The following will reduce the vulnerability of SSH to brute force attacks. 

Edit the /etc/ssh/sshd_config (not ssh_config!) file with (some of) these entries:

AllowUsers name name2 name3
Port 222                            (change the default ssh port)
PermitRootLogin no                  (disallow root logins, use su)
Protocol 2                          (disables less-secure protocol v1)
MaxAuthTries 2                      (slows down incoming connection attempts)
MaxStartups 3:75:10                 (slows down incoming connection attempts)

Access to SSH is often controlled by /etc/hosts.allow and /etc/hosts.deny.

For wide-open access, edit /etc/hosts.allow:

sshd:        ALL

SSH Connection Timeout

To keep connections from timing out and disconnecting, add the following line to the /etc/ssh/ssh_config (SSH client configuration) file:

ServerAliveInterval 60

SSH Root Access

SSH is often configured not to allow root logins.

In this case, you have two options:

  1. log in as a regular user, then 'su' to gain root privileges like this:
    1. su - root
  2. modify the /etc/ssh/sshd_config file to permit root logins
Last Updated on Sunday, 06 July 2008 19:08  

Your external IP

You are connecting to this site from: 38.107.179.231

Secure Client Login

Email Address:

Password: