I am on macOS Sierra, and my SSH version is :
OpenSSH_7.5p1, OpenSSL 1.0.2l 25 May 2017
I have this content in my
Host db User user HostName 192.168.1.111 ProxyCommand ssh user@db -W %h:%p Host website User user HostName 192.168.1.100 ProxyCommand ssh user@Website -W %h:%p
I also have a server with a public IP, that has direct connection with these two servers, I want to forward my SSH connection through this public server to my private servers (db and website).
When I use this command:
ssh user@db -W %h:%p
I get this error:
Bad stdio forwarding specification '%h:%p'
Now, what should I do to solve this problem and connect my macOS host to my private servers?