Configuring OpenSSH

This section explains how to acquire, compile, install, and configure OpenSSH for Linux, so that you can use it in place of telnet, rsh, and rlogin.

In the unlikely event that your Linux distribution does not include OpenSSH, it is available at and at many mirror sites around the world. It is a simple matter to compile and install OpenSSH if you have gcc, make, and the necessary libraries and header files installed. The OpenSSH build uses autoconf (the usual configure, make, and so on) like most other free software/open source projects.

To enable login from remote systems using OpenSSH, you must start sshd, which may be done simply by issuing the following command:

# sshd

Note that you do not need to put this command in the background, as it handles this detail itself. Once the sshd daemon is running, you may connect from another SSH-equipped system:

# ssh mysecurehost

The default configuration should be adequate for basic use of SSH.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.