I have a added a local proxy for all my hosts in my .ssh config, however I want to shell into my local vm without the proxy command. Output of my ssh attempt:
debug1: /Users/bbarbour/.ssh/config line 1: Applying options for local.dev
debug1: /Users/bbarbour/.ssh/config line 65: Applying options for *
Given the following ssh config how do I prevent the ProxyCommand from being applied to the local.dev entry?
Host local.dev
HostName dev.myserver.com
User developer
...
Host *
ProxyCommand /usr/local/bin/corkscrew 127.0.0.1 8840 %h %p
Best Answer
You can exclude local.dev from ProxyCommand, using
!
before it:From ssh_config documentation:
The documentation also said:
So, you can also disable ProxyCommand for local.dev by override value that you have defined in
Host *
: