Host Configuration
Understand host configuration.
Host Specific Configuration file
Create a config filename config
in your local ~/.ssh
directory.
You can define each individual SSH configuration options into this file. You can find all the SSH configuration options from this ssh_config.
Declaration | Description |
---|---|
Host * | All hosts |
Host remote-alias | You can name remote-alias whatever you want |
ServerAliveInterval | If set 180, then every 3 minutes, send a packet to the server to let it know not to close the connection |
StrictHostKeyChecking | If set "no", it will disable host checking and it will auto-add new hosts to the known_hosts file (fingerprint) directly |
UserKnownHostsFile | Not warn on new or changed hosts |
HostName | remove host name or IP Address |
Port | Port number to access |
User | Username used to access |