Sample :
[[Server]]
has two interfaces : iface1 and iface2 ;
- iface1 only listens SSH
- iface2 only listens HTTPS (my target)
Only [[SSHProxy]]
is authorized to connect to [[Server]]:22
diagram :
:iface2(listen 443) [[Server]] :iface1(listen 22) <-----> [[SSHProxy]] :iface1(listen 22) <-----> [[MyStation]]
QUESTION ==> How to forward locally [[Server]]:iface2(443)
on [[MyStation]]
in 1 ti in ssh_config, with nc
or "-w"
option in SSH ??
Actually I do it in two times :
From [[MyStation]] :
ssh user@[[SSHProxy]]
Then on SSHProxy :
ssh user@[[Server]] -L8443:iface2:443
From [[MyStation]] :
ssh user@[[SSHProxy]] -L8443:127.0.0.1:8443
I'm looking for a faster way...
Thanks a lot !