Create tunnel through an open SFTP connection?

0

1

I have a remote PC (behind NAT and firewall) set up to create a reverse SSH tunnel to my home PC/server (DMZed). Unfortunately, the tunnel hasn't been working lately. Fortunately -- I think -- the remote PC currently has an SFTP session open to the local one.

My question is, can I create a tunnel back to the remote PC through that session, say by "piggybacking" on the established connection? Or am I SOL until I can physically get in to restore the reverse tunnel on the remote PC?

criptych

Posted 2011-06-29T22:59:14.137

Reputation: 1

Answers

0

Pretty much your only hope, I think, is if your SFTP session gives you access to create a cron job, or otherwise create a script that can be run without local access. Then you could drop a script in place that would initiate an SSH connection.

Flimzy

Posted 2011-06-29T22:59:14.137

Reputation: 4 168

Thanks, but the remote PC is the SFTP client, downloading from the local server. I thought about dropping a script into the folder, but then realized there's no way to make the remote PC run it... without SSH access. I'll just have to check on it tomorrow, and hopefully I can fix the reverse tunnel and this question will be moot. I'll keep your suggestion in mind for the future, though! – criptych – 2011-06-30T01:07:04.650