How to use ProxyCommand for ssh chain

Host HostA    
 HostName real-host-name-A-or-ip    
Host HostB    
 HostName real-host-name-B-or-ip    
 ProxyCommand ssh -q HostA nc %h %p    
Host HostC    
 HostName real-host-name-C-or-ip    
 ProxyCommand ssh -q HostB nc %h %p

Popular posts from this blog

How to get Active Transactions and Locks from MySQL

Example of a PAC file