osX Archives - ISbyR https://isbyr.com/tag/osx/ Infrequent Smarts by Reshetnikov Fri, 24 Jun 2022 11:45:31 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 How to ssh from Mac via socks proxy https://isbyr.com/how-to-ssh-from-mac-via-socks-proxy/ https://isbyr.com/how-to-ssh-from-mac-via-socks-proxy/#respond Thu, 18 Oct 2018 05:42:11 +0000 http://isbyr.com/?p=376 In order to ssh from Mac via socks proxy you will need to use ncat utility. You will need to use ncat utility which is not available on OSx by default, and is not directly in homebrew, but you can get it by installing nmap (as nmap installation includes ncat utility with support of socks5) … Continue reading How to ssh from Mac via socks proxy

The post How to ssh from Mac via socks proxy appeared first on ISbyR.

]]>
In order to ssh from Mac via socks proxy you will need to use ncat utility.

You will need to use ncat utility which is not available on OSx by default, and is not directly in homebrew, but you can get it by installing nmap (as nmap installation includes ncat utility with support of socks5)

Install nmap

brew install nmap

Connect to your target host

ssh -v -o 'ProxyCommand=ncat --proxy-type socks5 --proxy proxyhost:proxyport --proxy-auth proxyuser:proxypass %h %p' -p22 username@serverhost

That’s is, the only disadvantage is that you need to fill in your user:pass in the command itself. If you have any idea how to overcome it please let me know.

Reference https://stackoverflow.com/questions/34348720/osx-ssh-to-server-through-socks5-proxy

The post How to ssh from Mac via socks proxy appeared first on ISbyR.

]]>
https://isbyr.com/how-to-ssh-from-mac-via-socks-proxy/feed/ 0