I was wondering if it possible to setup a tunnel connection which uses another ssh connection in the ProxyCommand. Normally I would use the following ProxyCommand:
ProxyCommand ssh -W hostname %h:%p
Usually I would configure the connection to be used in the ProxyCommand as well in the same config file which is not possible with Core Tunnel. Then the connection can be user.
I also understood that the ProxyCommand cannot use the configuration available in the macOS config (~/.ssh/config).
Thanks for that input ā¦ you are amazing fast. Awesome!
I have tried to change the Configuration to āsystemā but it asks me to install the helper which is already installed. (Need it for ProxyCommand ācorkscrewā).
I installed it again jesterday. Did you releasae a new one since that?
On the other topic, ā¦ The proxy command with another ssh connection, I tried it with the proxy jump and it did not work. So I added the Proxy Command as I am used to.
ProxyCommand ssh hostname -W %h:%p
These are the last log lines with the error ā¦
14:44:17 ssh_exchange_identification: Connection closed by remote host
14:44:17 The Core Helper process exited or crashed.
14:44:17 The Core Helper connection has terminated.
14:44:17 Abnormal Disconnect
14:44:17 Connection failed, retry after 3sā¦
14:44:20 Disconnected
I have checked the server logs too. It seems that the JUMPHOST authentication failed. The JUMPHOST config comes from the ~/.ssh/config and works for sure as I use it daily.
The only thing I can think of is that the ssh-agent used to unlock the ssh-key (by the way the same as used in the Tunnel configuration) is not accessable. Can that be the reason?
It seems that is the problem. If i use the ssh command listed as āEquivalent Commandā, it works. Must be related to the sandboxing or the fact that the ssh-agent is not accessed.
Enabling the Authentication Agent in the settings does not work for some reason. When I click the checkbox, the check-mark apears for a very short moment and disappears again. I checked the ssh-agent is running and lists my ssh-key.
That should be the most important settungs for that setup. Of course there are more but user name and host names are not important at this poiunt. This works greatr in the terminal. But when the connection(s) are dropped or disconnected for some reason, I have to manually start it again - annoing.
So I thought I can use Core Tunnel to do this. So far with limited luck. I am happy I did not buy it rigt away. So I am still in the testing phase ... Still hoping for the best.
Please try setting the path of auth agent to the value of env $SSH_AUTH_SOCK.
ssh reads auth agent socket path from $SSH_AUTH_SOCK, if you change the value in ~/.bash_profile or ~/.bash_rc, Core Tunnel does not know anything about this change, so we must set it explicitly in Preferencesā¦
I will try setting the path to the value of $SSH_AUTH_SOCKET. But this is just a workaround, right? Because after a reboot, that path will change.
What is the solution to it?
What I do in the badh config is simply the following.
I check if a socket from ssh-agent can be found.
if found, It is exported as the SSH_AUTH_SOCKET env variable
-if not, ssh-agent is started and the variable is set too.
Any way, the variable is set as soon as the Terminal is opened the first time. Question is what dies Core Tunnel when the ssh-agent is not yet running? The path it detects seems to be something completely different then what ssh-agent usually creates.