Linux Server Diary

The trials and tribulations of a Linux newbie trying to setup a home server.

Saturday, November 04, 2006

SSH Configuration Changes

I've been reading that a couple of the default SSH settings in Ubuntu may need to be changed.

First, remote login for root is enabled, so I turned that off. Also, since I won't be running remote graphical applications, I denied X11 forwarding.

The settings are found in /etc/ssh/sshd_config.

Change:

PermitRootLogin yes

To:

PermitRootLogin no

And Change:

X11Forwarding yes

To:

X11Forwarding no

Save the file.

Finally, use the following command to restart SSHD.

sudo /etc/init.d/ssh restart

Labels:

0 Comments:

Post a Comment

<< Home