Sunday 15 May 2011

exclude test.com from proxy list in ssh config file -



exclude test.com from proxy list in ssh config file -

i ssh servers through proxy adding below ssh config

host * proxycommand nc -x 'someproxy.com' %h %p

how can exclude test.com it.

you can utilize match command , negation operator:

match host *,!test.com proxycommand nc -x 'someproxy.com' %h %p

source: http://www.openbsd.org/cgi-bin/man.cgi/openbsd-current/man5/ssh_config.5

ssh proxy

No comments:

Post a Comment