2

I have a Socks5 proxy that uses username/password authentication. I can use it with SSH using NCAT in the ProxyCommand: ssh -o ProxyCommand="ncat --proxy-type socks5 --proxy-auth username:password --proxy socks5.proxy.domain:1080 %h %p" root@ssh.server.domain

I'm using ncat from the NMAP package because the built-in nc command doesn't handle Socks5 proxy authentication.

Is there a simpler way of doing this without requiring nmap to be installed on the client?

ykaganovich
  • 149
  • 3
  • 8
  • Since afaik openssh has no native socks5 client support you need an external proxy command that does. (But you can configure the settings in your .ssh/config to have a more manageable command line.) – Bob Jan 23 '21 at 09:07

1 Answers1

0

There's no built-in support for SOCKS5 proxy since ProxyCommand is generic enough that it provides support for any kind of proxy.

However nc does support SOCKS5 using -X 5 so there's no need for ncat.

Ginnungagap
  • 2,595
  • 10
  • 13