Posted by: jasonk2600 | December 27, 2009

Random Notes: Enabling Secure Shell on Debian GNU/Linux

The basic default configuration of Debian GNU/Linux does not include remote secure shell (SSH) login.  Enabling remote secure shell login with the OpenSSH server is straight forward and simple.  Begin by installing the OpenSSH server via the aptitude software management utility.

# aptitude install openssh-server


Edit the OpenSSH server configuration file (/etc/ssh/sshd_config) and disable direct root login through SSH.  To gain access to the root account, login as an underprivileged user and use the su utility to change to the root super user. It is also advisable to configure the OpenSSH server to only use version 2 of the SSH protocol.

PermitRootLogin no
Protocol 2


Restart the OpenSSH server for the new settings to take effect.  Once the OpenSSH server has restarted it will now be possible to remotely login to the system using secure shell.

# /etc/init.d/ssh restart
Restarting OpenBSD Secure Shell server: sshd.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: