| 1 |
### default for all ## |
| 2 |
Host * |
| 3 |
ForwardAgent no |
| 4 |
ForwardX11 no |
| 5 |
ForwardX11Trusted yes |
| 6 |
User nixcraft |
| 7 |
Port 22 |
| 8 |
Protocol 2 |
| 9 |
ServerAliveInterval 60 |
| 10 |
ServerAliveCountMax 30 |
| 11 |
|
| 12 |
## override as per host ## |
| 13 |
Host server1 |
| 14 |
HostName server1.cyberciti.biz |
| 15 |
User nixcraft |
| 16 |
Port 4242 |
| 17 |
IdentityFile /nfs/shared/users/nixcraft/keys/server1/id_rsa |
| 18 |
|
| 19 |
## Home nas server ## |
| 20 |
Host nas01 |
| 21 |
HostName 192.168.1.100 |
| 22 |
User root |
| 23 |
IdentityFile ~/.ssh/nas01.key |
| 24 |
|
| 25 |
## Login AWS Cloud ## |
| 26 |
Host aws.apache |
| 27 |
HostName 1.2.3.4 |
| 28 |
User wwwdata |
| 29 |
IdentityFile ~/.ssh/aws.apache.key |
| 30 |
|
| 31 |
## Login to internal lan server at 192.168.0.251 via our public uk office ssh based gateway using ## |
| 32 |
## $ ssh uk.gw.lan ## |
| 33 |
Host uk.gw.lan uk.lan |
| 34 |
HostName 192.168.0.251 |
| 35 |
User nixcraft |
| 36 |
ProxyCommand ssh nixcraft@gateway.uk.cyberciti.biz nc %h %p 2> /dev/null |
| 37 |
|
| 38 |
## Our Us Proxy Server ## |
| 39 |
## Forward all local port 3128 traffic to port 3128 on the remote vps1.cyberciti.biz server ## |
| 40 |
## $ ssh -f -N proxyus ## |
| 41 |
Host proxyus |
| 42 |
HostName vps1.cyberciti.biz |
| 43 |
User breakfree |
| 44 |
IdentityFile ~/.ssh/vps1.cyberciti.biz.key |
| 45 |
LocalForward 3128 127.0.0.1:3128 |
| 46 |
|
| 47 |
## From https://www.cyberciti.biz/faq/create-ssh-config-file-on-linux-unix/ |
| 48 |
|