I have a command, which looks like so:
$ ssh [long list of parameters, eventually I connect to internalhost]
My task is to replace this long list of parameters with just internalhost
, so that I could run it like so
$ ssh internalhost
How can I do that?
Best Answer
Standard SSH clients read the configuration files before any connection:
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
Then to connect:
All possible options are documented in ssh_config manual pages: man ssh_config