Skip to main content

Standard Ssh client readsSSH clients read the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter withhaving more priority.
Ideally, you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an expampleexample of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Then to connect:

ssh remote.example.com

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_config

Standard Ssh client reads the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter with more priority.
Ideally you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an expample of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Then to connect:

ssh remote.example.com

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_config

Standard SSH clients read the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter having more priority.
Ideally, you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an example of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Then to connect:

ssh remote.example.com

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_config

Standard Ssh client reads the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter with more priority.
Ideally you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an expample of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Then to connect:

ssh remote.example.com

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_config

Standard Ssh client reads the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter with more priority.
Ideally you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an expample of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_config

Standard Ssh client reads the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter with more priority.
Ideally you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an expample of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Then to connect:

ssh remote.example.com

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_config

add man page link and correct formatting; seems more appropriate to link to the upstream provider
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 267

Standard Ssh client reads the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter with more priority.
Ideally you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an expample of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_configman ssh_config

Standard Ssh client reads the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter with more priority.
Ideally you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an expample of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_config

Standard Ssh client reads the configuration files before any connection:

/etc/ssh/ssh_config   # system-wide
~/.ssh/config         # per user

with the latter with more priority.
Ideally you want to configure the systemwide config with parameters that please all users and the config in your homedir with options specific to you.
Here's an expample of ~/.ssh/config

Host remote.example.com
    User            dev1
    IdentityFIle    ~/.ssh/id_rsa_remote

Note: ~/.ssh/config must have read/write permissions for the user, and not be accessible by others (chmod 600 ~/.ssh/config)

All possible options are documented in ssh_config manual pages: man ssh_config

Source Link
baselab
  • 661
  • 5
  • 14
Loading