SSH client configuration

Configuration files

Configuration settings

The client knows a lot of individual settings that may be configured in a configuration file or via the command-line.

IdentityAgent

Configure the socket to use for the SSH agent.

See IdentityAgent

Port

Defines the port to be used. By default, the SSH server is configured with port 22 (TCP).

ProxyJump

Defines a bastion host (jump host, jump server, jump box) to connect to the destination system.

See ProxyJump

User

Define user on the server. This is useful when your active user and the one on the remote are different.

SSH configuration files

OpenSSH can be configured on the server and client. Learn about the locations where SSH client settings are configured and what precedence they take.

SSH ForwardAgent option

Secure SSH connections and learn about the ForwardAgent option, the available values, relevant security risks, and how to configure it.

SSH IdentityAgent option

OpenSSH can be configured to use an alternative SSH agent, or even none. Learn about the IdentityAgent option, available values, and how to configure it.

SSH PasswordAuthentication option

Secure SSH connections and learn about the PasswordAuthentication option, its available values, and how to configure it.

SSH ProxyJump option

Learn about the SSH client option ProxyJump, that allows using a bastion host or jump server to connect to other systems.

SSH StrictHostKeyChecking option

Secure your OpenSSH configuration and learn about the StrictHostKeyChecking option, available values, and how to configure it.

Relevant ssh client configuration commands

Like to learn more about the commands used in this section? Have a look at the cheat sheets or the related command page.

  • ssh