15 lines
417 B
Markdown
15 lines
417 B
Markdown
|
|
`Host **my-remote-server**` *a symbolic name of your choice*
|
||
|
|
|
||
|
|
|
||
|
|
`Hostname **server-IP-or-DNS**` *the real name*
|
||
|
|
|
||
|
|
`User **username**` *the username you use for login*
|
||
|
|
|
||
|
|
`IdentityFile ~/.ssh/a_suitable_ssh_key_if_any` *for authentication purposes*
|
||
|
|
|
||
|
|
`ControlMaster auto`
|
||
|
|
|
||
|
|
`ControlPath ~/.ssh/%C`
|
||
|
|
*or* `~/.ssh/%h-%p-%r` *for older versions*
|
||
|
|
|
||
|
|
`ControlPersist 5m` *or* `yes` *for never expiring persistent connection*
|