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 am at a location away from home and behind a firewall that does not allow any connections and any ports other than specific port to a specific ssh server.

I am using Windows 7 and putty.

Trying to ssh to my home server which is listening on port 22.

In putty, I tried In the destination address current-server current-port

In Connection -> SSH -> Tunnels Source port 22 Destination: home-server:22 I connect with no problems. I open a another putty session to localhost 22 I get a timeout.

Can anyone tell me what went wrong? If I am doing this incorrectly please let me know.

If you have another alternative from a cygwin ssh command line, I would also appreciate it. Thank you.

share|improve this question
    
Am I correct in understanding you can only SSH to a certain server, and from that server, you want to connect to your home server? –  ernie Dec 17 '12 at 17:21
    
please post 'netstat -ano | FINDSTR LISTENING' from localhost (use windows powershell), with the tunnel disengaged. is there anything on tcp/22? have you tried using a different source port, like 7643? if you do so, can putty connect to it instead of 22? –  Frank Thomas Dec 17 '12 at 17:56
    
@ernie, yes you are correct, that is exactly my environment right now –  R J Dec 17 '12 at 18:38
1  
@ernie Thanks for taking the time to help and for bearing with me. I have added a new port 35353 to listen to for my home server, restart sshd, tested it from within the network, it works (all through painfully slow web remote access), configured putty again for the new port, now I test it from this location, I get ssh_exchange_identification: Connection closed by remote host Not sure what to do from here. Thanks again for all the help. –  R J Dec 17 '12 at 19:22
1  
Deleted my previous comment as it was incorrect - in any case, can you SSH from the remote machine to your home machine? You said you were testing from "this location" - it's not clear if that means you're SSH'ing from the local machine (A) to the home server (C) or from the remote machine (B) to the home server (C) ? We need to verify that B can connect to C. –  ernie Dec 17 '12 at 19:41

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.