Skip to Content
SSH, The Secure Shell: The Definitive Guide, 2nd Edition
book

SSH, The Secure Shell: The Definitive Guide, 2nd Edition

by Daniel J. Barrett, Richard E. Silverman, Robert G. Byrnes
May 2005
Intermediate to advanced
666 pages
21h 5m
English
O'Reilly Media, Inc.
Book available
Content preview from SSH, The Secure Shell: The Definitive Guide, 2nd Edition

How to Configure Clients

The clients ssh and scp are quite configurable, with many settings that can be changed to suit your whim. If you want to modify the behavior of these clients, three general techniques are at your disposal:

Command-line options

For changing the behavior of ssh or scp for a single invocation

Configuration keywords

For changes that remain in force until you change them again; these are stored in a client configuration file

Environment variables

For a few miscellaneous features

We now present a general overview of these three methods.

Client configuration (highlighted parts)

Figure 7-1. Client configuration (highlighted parts)

7.1.1 Command-Line Options

Command-line options let you change a client’s behavior just once, at invocation. For example, if you’re using ssh over a slow modem connection, you can tell it to compress the data with the -C command-line option:

    $ ssh -C server.example.com

ssh, scp, and most of their support programs, when invoked with the --help option, will print a helpful summary describing all their command-line options.[102] For example:

    $ ssh --help
    $ scp --help
    $ ssh-keygen -help

7.1.2 Client Configuration Files

If you don’t want to retype command-line options continually, configuration files let you change a client’s behavior now and in the future, until you change the configuration file again. For example, you can enable compression for all clients you invoke by inserting this line into ...

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.
Start your free trial

You might also like

Linux Basics for Hackers

Linux Basics for Hackers

OccupyTheWeb .

Publisher Resources

ISBN: 0596008953Errata Page