SSH, the Secure Shell/Installation

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Installation[edit | edit source]

There are two ways to install software. You can compile it from sources, which will give you access to compile-time options, or install it from a package.

Compilation[edit | edit source]

We will concentrate on the OpenSSH suite, because it is free, open source and popular. Sources can be obtained from

Requirements[edit | edit source]

OpenSSH depends on the following:

  • OpenSSL
  • zlib

Installation from a package[edit | edit source]

Depending on your operating system, there are various ways one can install software.

Debian based systems[edit | edit source]

The whole suite[edit | edit source]

apt-get install ssh

The client and server can be installed separately[edit | edit source]

apt-get install openssh-client
apt-get install openssh-server

FreeBSD[edit | edit source]

In most cases, you already have SSH installed on your FreeBSD system. Check by typing

which ssh

If, in return, you get something like "Command not found" you have to install SSH. We will install OpenSSH. To do it, simply type the following. Note, that other implementations of SSH (like SSH and SSH2) are also available.

Via ports[edit | edit source]

cd /usr/ports/security/openssh && make install clean

Via packages[edit | edit source]

pkg_add -r openssh

OpenBSD[edit | edit source]

Since OpenSSH is developed by the OpenBSD project, binaries should be included in the base system.

Windows[edit | edit source]

PuTTY is a SSH client for the Windows family of operating systems. No installation is needed, simply download the appropriate binary from