Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer
    
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 Jun 30 '11 at 1:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .