OpenSSH Configuration

From NovaOrdis Knowledge Base
Revision as of 19:40, 6 August 2019 by Ovidiu (talk | contribs) (→‎-o ConnectTimeout)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Client Configuration

The system-wide ssh client configuration file is /etc/ssh/ssh_config (or /etc/ssh_config in cygwin). The file provides defaults for users, and the values can be changed in per-user configuration files or on the command line. The precedence is as follows: 1) command line options 2) user-specific file and 3) system-wide file. Any configuration value is only changed the first time it is set. For more details see ssh_config(5) man page.

-o ConnectTimeout

Specifies the timeout in seconds used when connecting to the SSH server, instead of using the default system TCP timeout. This value is used only when the target is down or really unreachable, not when it refuses the connection.

-o ConnectTimeout=1

-A

ssh Agent Forwarding

Server Configuration

sshd Configuration