I'm have configured a bastion or (jump) box to access a virtual private network.
#ssh_config
Host bastion
HostName 14.90.140.120
User me
IdentityFile ~/.ssh/me
ForwardAgent yes
Host 10.1.*
User me
IdentityFile ~/.ssh/me
ProxyCommand ssh bastion -W %h:%p
I am able to ssh into both the bastion and 10.1.1.6 address with no issues.
What I would like to be to do is add an entry like the following. Note: I have not time for DNS at the moment, but it would be my preferred approach.
#/etc/hosts
10.1.1.6 my-host-inside-vpc.corp.internal
When I do that however and try to access the machine I get the following
➜ ~ ssh -vvv my-host-inside-vpc.corp.internal
debug1: Reading configuration data /home/me/.ssh/config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to my-host-inside-vpc.corp.internal [10.1.1.6] port 22.
At this point the operation times out.