I am attempting to use bastionssh to access a number of other servers. My point of contact is a colleague who is based on the other side of the world so getting information can be tricky. He provided me with access for the bastionssh server and provided me with a config file with details such as those below:
Host hostname
User username
TCPKeepAlive yes
HostName x.x.x.x
ProxyCommand ssh bastionssh nc %h %p
I am not sure how to attempt a connection to this host. I had tried
ssh bastionssh nc %h %p
But got permission denied. Didn't expect it to work and fear it may be a false identification of permissions mainly because while I ran this command I never referenced the actual hostname or username etc. Can anyone provide me with an idea of how I am to use these details if the proxycommand just has %h and %p. Do i replace these values with the host provided?