hackerschoice / gsocket

Connect like there is no firewall. Securely.
https://www.gsocket.io
BSD 2-Clause "Simplified" License
1.46k stars 125 forks source link

OSX gsocket ssh problems #39

Closed rootTHC closed 3 years ago

rootTHC commented 3 years ago

works fine with netcat and other tools but ssh seems to have changed (or libc change?)

server: gsocket nc -vnlp 22 client: gsocket ssh blah@2.31.33.7

ssh: Could not resolve hostname 127.3.13.3.7: nodename nor servname provided, or not known Works fine on linux but not on OSX...

Works fine when compiling ssh from source: ./configure --prefix=$HOME/usr LDFLAGS="-L/usr/local/opt/openssl/lib" CPPFLAGS="-I/usr/local/opt/openssl/include"

rootTHC commented 3 years ago
    # System Integrity Protection makes dyld ignore
# DYLD_INSERT_LIBRARIES.
# There are two ways how MacOS determines if a binary is SIP protected:
# 1. The location of the binary (ls -alO /usr/bin/ssh)
# 2. If the binary contains 'entitlements' (regardless of its location on the fs).
# A hack around this is to remove the signature completed (which will also disable
# any entitlements).