You are not logged in.

#1 2010-06-23 01:53:25

poopship21
Member
Registered: 2009-05-13
Posts: 177

reverse ssh tunnel broken in screen

example:

You want to access from Linux client with IP 138.47.99.99
Destination (masked ip) <- |NAT| <- Source (138.47.99.99)

destinationuser@destinationdomain$ screen
destinationuser@destinationdomain$ ssh 2222:localhost:22 <sourceuser>@138.47.99.99 (address of the source domain)
sourceuser@sourcedomain$ ssh destinationuser@localhost -p 2222
Password: (typed in the password)

then get some stuff about authentication failure

this works fine as long as ssh is not executed within a screen session (omit line 1 of the code block above).  why is that?

TIA

Offline

Board footer

Powered by FluxBB