OpenSSH Configuration: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
=Client Configuration= | =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== | ==-o ConnectTimeout== | ||
Line 10: | Line 12: | ||
-o ConnectTimeout=1 | -o ConnectTimeout=1 | ||
==-A== | |||
{{Internal|ssh Agent Forwarding|ssh Agent Forwarding}} | |||
=Server Configuration= | =Server Configuration= | ||
{{Internal|sshd Configuration|sshd Configuration}} | {{Internal|sshd Configuration|sshd Configuration}} |
Latest revision as of 19:40, 6 August 2019
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