Pages

Sunday, January 10, 2016

SSH Bastion Host

Based on blog post here - http://blog.scottlowe.org/2015/11/21/using-ssh-bastion-host/

THis works for me on FreeBSD

Host fbsd01.dc01
        Hostname 95.80.241.17
        Port 2222
        User cdave
        ForwardAgent yes

Host fbsd02.dc01
        User cdave
        Hostname fbsd02.dc01.uw.cz
        IdentityFile ~/.ssh/id_rsa
        #ProxyCommand ssh cdave@fbsd01.dc01 nc %h %p
        ProxyCommand ssh cdave@fbsd01.dc01 -W %h:%p

No comments:

Post a Comment