• RSS
  • Twitter
  • FaceBook

Appendix 1: Configuring SSH

The following descriptions are quoted or paraphrased from either the README or RFC files included with the source code package, Copyright (c) 1996 SSH Communications Security, Espoo, Finland.

16.1 What is SSH?

"SSH (Secure Shell) is a program to log into another computer over a network, to execute commands in a remote machine, and to move files from one machine to another. It is intended as a replacement for rlogin, rsh, rcp, and rdist."

16.2 Features

"It provides strong authentication and secure communications over insecure channels. It closes several security holes (e.g., IP, routing, and DNS spoofing). All communications are automatically and transparently encrypted. RSA is used for key exchange, and a conventional cipher for encrypting the session. Encryption is started before authentication, and no passwords or other information is transmitted in the clear."

16.3 Quick Configuration

SSH includes many configuration options, including support for tcp_wrappers and complete replacement of the BSD remote commands. See the INSTALL file for custom configurations.

./configure  [ --with-libwrap --with-rsh=/usr/bin/rsh '--program-transform-name=s/^s/r/' ]
make all
make install
Check the server configuration in:  /etc/sshd_config
Check the client configuration in:  /etc/ssh_config
make-ssh-known-hosts <domainname>
eg: make-ssh-known-hosts world.std.com

16.4 Starting sshd

Add the command /usr/local/sbin/sshd/ to /etc/rc.d/rc.local/.

The following is quoted from the INSTALL file included with the source code package:

"The server is not started using inetd, because it needs to generate the RSA key before serving the connection, and this can take about a minute on slower machines. On a fast machine, and small (breakable) key size (< 512 bits) it may be feasible to start the server from inetd on every connection. The server must be given "-i" flag if started from inetd."

See the ssh (22) packet filtering rules in the firewall example above.

Receive all the latest articles by email!

Get all articles delivered directly to your mailbox as and when they are released on WindowSecurity.com! Choose between receiving instant updates with the Real-Time Article Update, or a monthly summary with the Monthly Article Update. Sign up to the WindowSecurity.com Monthly Newsletter, written by George Chetcuti, BSc in Computing & IS (Honors), containing news, the hottest tips, security links of the month and much more. Subscribe today and don't miss a thing!



Receive all the latest articles by email!

Receive Real-Time & Monthly WindowSecurity.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowSecurity.com member!

Discuss your security issues with thousands of other network security experts. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Event Log Monitoring solution?