C++Guns – RoboBlog

23.07.2014

SSH Tunnels

Filed under: Allgemein — Tags: — Thomas @ 14:07

local$ ssh -4 -p PORT -N -L 8000:192.168.210.102:80 user@ite

Nette Sache Das! SSH bindet aber leider keine Ports an 0.0.0.0 da muss man mit netcat etwas nachhelfen
01.2018 Update: Doch das geht. Man muss nur 0.0.0.0: vorne dran setzen. Für IPv4 natürlich.
02.2019 Update2: Für IPv4 die -4 nicht vergessen. Sonst bind [::1]:10000: Cannot assign requested address

Old:
local$ ssh -p PORT -L 1391:192.168.210:41:139 user@ite -N
local$ netcat -l -p 139 -c "netcat 127.0.0.1 1391"

Mit 445 genauso.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress