O'Reilly logo

Ubuntu Unleashed 2013 Edition: Covering 12.10 and 13.04, Eighth Edition by Matthew Helmke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting Up an SSH Server

If not installed already, you can install the OpenSSH server through Synaptic by adding the openssh-server package. As you might have guessed, sshd is the name for the SSH server daemon.

Start by configuring your firewall to allow connections through port 22. If this port is blocked, you cannot use SSH. See Chapter 18, “Securing Your Machines,” for help doing this.

Two different versions of SSH exist, SSH1 and SSH2. The latter is newer and more secure, comes with more features, and is the default in Ubuntu. Support for SSH1 clients is best left disabled so that older clients cannot connect. This is done by default in the /etc/ssh/sshd_config file on this line:

Protocol 2

If you have no other option and absolutely have ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required