Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.