Skip to Content
Virtual Private Networks, Second Edition
book

Virtual Private Networks, Second Edition

by Mike Erwin, Charlie Scott, Paul Wolfe
December 1998
Intermediate to advanced
228 pages
6h 36m
English
O'Reilly Media, Inc.
Content preview from Virtual Private Networks, Second Edition

Building and Installing SSH

For most Unix systems, the installation of SSH is pretty straightforward. Simply download the gzipped tar file from one of the FTP mirror sites listed at http://www.ssh.fi/sshprotocols, for instance, ssh-1.2.25.tar.gz. (Note: Typically there’s a new version of SSH released every few months.) In order to compile SSH, you need an ANSI C compiler such as gcc. The simplest way to build this software is to do the following:

# ./configure
# make
# make install

The configure script should recognize your system type, discover important information about your build environment, and—if everything checks out—create a corresponding Makefile. The make program uses this Makefile to build the software. The make install directive installs the SSH components and manual pages in the right places, and generates the initial 1024-bit host key pair (if it doesn’t already exist).

The last thing you’ll have to do is put sshd in an rc file, so it will launch at startup. On Linux, you’ll want to put it in /etc/rc.d/rc.local, with a syntax like this:

# Start SSH
echo "Starting SSH Daemon..."
/usr/local/sbin/sshd;

There are other parameters you can use with sshd, and we’ll look at some of them in Section 8.3.

You’ll also want to enable the port on which you’re running SSH. In our case, we’re going to use the default port of 22, so we’ll have to edit our /etc/services file and add a line like this:

ssh             22/tcp

As of this writing, SSH has been known to compile on at least thirty-six different ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Troubleshooting Virtual Private Networks

Troubleshooting Virtual Private Networks

Mark Lewis
IPsec Virtual Private Network Fundamentals

IPsec Virtual Private Network Fundamentals

- CCIE No. 6085 James Henry Carmouche

Publisher Resources

ISBN: 1565925297Catalog PageErrata