Putty - SSH Tunneling on 64-bit RC
Hello,It appears that SSH tunneling using Putty does not work on the Windows 7 64-bit RC. If I run netstat -ab, I can see that putty is listening on the ports that I specify, but when I point my web browser (Firefox) to localhost to use as a SOCKS proxy, it fails to connect.I tried disabling the Windows Firewall to see if this was interfering, but alas, that did not resolve it. I also tried adding a program exception for putty.exe on the inbound and outbound ruleset.Any thoughts as to why this is occurring?Trevor SullivanSystems EngineerOfficeMax CorporationTrevor Sullivan Systems Engineer OfficeMax Corporation
May 8th, 2009 8:00am

Trevor,See this article for possible help...http://support.microsoft.com/default.aspx/kb/315236/en-usI just checked my Win7 RC1 machine and the value was set to 0 which would appear to be the default. Of course this presumes your running the SSH server on the Win7 machine. Is that correct?MS-MVP Windows Desktop Experience, "When all else fails, read the instructions"
Free Windows Admin Tool Kit Click here and download it now
May 8th, 2009 8:07am

Al,Thanks for the quick response to this. The SSH server is actually running on a remote,embedded Linux device, not my Windows 7 system. I am only using Windows 7 as the client operating system.I can perform SSH forwarding using Putty from a Windows XP or Vista system without an issue.Trevor SullivanSystems EngineerOfficeMax CorporationTrevor Sullivan Systems Engineer OfficeMax Corporation
May 8th, 2009 8:11am

That's certainly not a solution then since the SSH server is not on the Vista box. Have you tried IE versus Firefox just as a test?Unfortunetly I currently don't have a SSH server to connect to to test with.MS-MVP Windows Desktop Experience, "When all else fails, read the instructions"
Free Windows Admin Tool Kit Click here and download it now
May 8th, 2009 9:52am

Al,Yes, I have tested with Internet Explorer 8, and it exhibits the same connectivity issues as Firefox.One other thing that I tried was running Putty in XP SP3 compatibility mode. That didn't work either. Just to clarify, the SSH session itself connects just fine, but only tunneling via SOCKS doesn't work.Trevor SullivanSystems EngineerOfficeMax CorporationTrevor Sullivan Systems Engineer OfficeMax Corporation
May 8th, 2009 9:55am

Well, officially Firefox and these forums just don't work well IMHO...:-(So with that said, have you tried PuTTY in a Vista SP1 compatibility mode? More than likely you will see no difference but it may be worth a shot, long at best.You also might try Tunnelier as a test also in Vista SP1 mode with Firefox.http://www.bitvise.com/tunnelier.htmlhttp://www.bitvise.com/tunnelier.html#port-forwardinghttp://www.bitvise.com/files/socks-tunnelier.gifhttp://www.bitvise.com/files/socks-firefox.gifIf I get time I may setup a SSH server on my WHS and try this with the Win7 RC clientbut it probably won't be anytime in the next day or so.MS-MVP Windows Desktop Experience, "When all else fails, read the instructions"
Free Windows Admin Tool Kit Click here and download it now
May 8th, 2009 3:10pm

Al, Yeah, I tend to use Internet Explorer when accessing these Technet and MSDN forums. It works a lot better, and isn't worth the hassle of using Firefox, as much as I like it. I'm pretty sure I already tried using Vista SP1 compatibility mode with Putty when I was working with this last week. I will see if I can give Tunnelier a try. Just to clarify, I'm pretty sure that this isn't an IE vs. Firefox issue, but rather an issue with the networking libraries on Windows 7. SSH tunneling with Putty works with both IE and Firefox on Windows Vista or Windows XP. I'd appreciate it if you could replicate the issue and file a bug report. Is there a way that I can directly file a bug report? Thanks, Trevor Sullivan Systems Engineer OfficeMax CorporationTrevor Sullivan Systems Engineer OfficeMax Corporation
May 10th, 2009 10:56am

Alright, so I tried Tunnelier this morning.Tunnelier does not work natively, nor in Windows Vista SP1 compatibility mode. I enabled SOCKS / HTTP Proxy Forwarding under the Services tab, and used netstat to validate that it was listening for connections.The issue persists ... is there any way to directly file a bug report? Trevor SullivanSystems EngineerOfficeMax CorporationTrevor Sullivan Systems Engineer OfficeMax Corporation
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2009 10:31am

Hate to contradict you, but I've been using it fine. Win7 64-bit RC, PuTTY 0.60 SSH connected to Debian 5.0 running OpenSSH 5.1p1, dynamic port forward, Firefox 3 set to use a Socks proxy at localhost. I don't recall even having to set up an exception in Windows Firewall to get it to work. It just did. Just to check (I'm sure you know all this, just want to verify), in Firefox you have all proxy settings blank except for the SOCKS setting, and SOCKS v5 is selected? And in PuTTY, for the tunnel, you set the Source port number to something greater than 1024, left Destination blank, selected Dynamic, clicked Add, and clicked Apply? And, the port selected in PuTTY is identical to the SOCKS port designated in Firefox?
May 14th, 2009 12:35pm

Hello,Thanks for your response. That's rather frustrating that you're able to make it work, while I can't, but it's good to know that it should work! :)Here is what my setup looks like:http://i43.tinypic.com/w7yosh.pnghttp://i41.tinypic.com/nnpkar.pnghttp://i42.tinypic.com/2uixlb9.pnghttp://i41.tinypic.com/16l9ysp.pngTrevor SullivanSystems EngineerOfficeMax CorporationTrevor Sullivan Systems Engineer OfficeMax Corporation
Free Windows Admin Tool Kit Click here and download it now
May 19th, 2009 10:49am

Yeah, I was afraid of that. Yours looks just like mine (except I use port 9999 as my local SOCKS port, and I log in to a Debian server and bash instead of Tomato/BusyBox ash). This should be working, as far as I can tell. I'm guessing you've tried this from another machine (or maybe a non-Windows 7 partition on the same machine)? What happens if you try browsing to http://74.125.127.147/ (an IP address for www.google.com) -- maybe DNS isn't making it over the proxy? (Not that I'd know why it wouldn't, but...)
May 19th, 2009 12:28pm

One of you has it working, the other does not, it is clearly an unshared variable where the issue lies. Maybe a tracert would tell us?
Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2009 3:13pm

I am having the same issue. Indeed it has nothing to do with Firefox or IE. In my case I am trying to use RDP. I Make a PPP connection to a remote Linux server, set up a tunnel with putty, then connect RDP to 127.0.0.1:localport. In the case of Firefox or RDP they seem to make an initial connection, with RDP i can get the login to display but by that time the connection will fail and drop. In my case with Firfox if the page is small (just a little text) it works OK, but if I tr to view a large log file it will fail a few hundred bytes into it. Watching the modem traffic looks like it is retransmitting over and over again. I can make the same setup in Vista 32 or XP and have no problem. Thanks.
June 25th, 2009 9:39pm

Hey wingsup,Thanks for confirming similar results to my scenario.I would be interested in some enlightenment to this issue.Thanks,Trevor SullivanSystems EngineerOfficeMax CorporationTrevor Sullivan Systems Engineer OfficeMax Corporation
Free Windows Admin Tool Kit Click here and download it now
June 25th, 2009 9:50pm

PCGEEK,Have you tried this again recently, it appears to me like it may be working now after all available updates.
October 20th, 2009 3:05pm

Hello,Yes, I have tried it on the RTM version of Windows 7 64-bit. It did work for me.Thanks for letting me know :)
Free Windows Admin Tool Kit Click here and download it now
October 20th, 2009 4:33pm

I am running the current Windows 7 Ultimate x64 with all current updates and still have the same issue with Putty... Wish I knew what the secret sauce was with tunnels.
November 28th, 2009 7:32pm

I have been tearing my hair out on this one as well. I am running into similar issues as Trevor and I agree that this is a Windows 7 / Putty networking issue and nothing to do with Explorer or Firefox as I am not using either one in my use of Putty. I am on a Windows 7 Ultimate x32 system. I have arrived at a concise way of descrbing the problem. I set up Putty SSH Tunnel to a remote Ubuntu server with port forwarding. The entry in the Forwarded ports window shows asR10005 localhost:10005when I run telnet on the Ubuntu server to my Windows 7 ip address using port 10005, I can establish a connection and it stays open. When I run telnet on the Ubuntu server to localhost using port 10005, I can establish a connection but it is immediately closed and the following message appears - "Connection closed by foreign host".When I was running Putty on XP to the same Ubuntu server, there would not be any issues.I am pretty sure I was able to do it with earlier versions of Windows 7 as well, both 32 and 64 bit. I am wondering if this issue has started with some of the recent Windows 7 updates. Maybe some networking configuration changes caused this? Maybe it is a Putty issue? I recently enabled IPv6. The contents of this last paragraph are only hunches and should not be treated as a fact.I hope this will trigger some thoughts out there.
Free Windows Admin Tool Kit Click here and download it now
February 16th, 2010 5:51pm

Has anyone resolved this? I exported the registry info from an XP system onto a Windows 7 Enterprise 64bit system, ensuring setting integrity. The putty session is configured to tunnel NetBT. On XP, the process works perfectly. On Windows 7, putty connects fine, but when I try to NET USE to the loopback adapter (just like I do on XP), the process fails. Thus, I have ruled out any issues with the problem being a putty setting, and I have narrowed down the something with the tunneling process itself. Since I am using the same version of putty on both the XP and Win7 system, it is probably not a putty issue. Thus, it seems to be something funky with the OS. Ideas?
April 19th, 2010 2:03pm

I am making the same observation right now. Windows 7 Ultimate 32 bit, and a putty SSH tunnel from a local port 80 to a remote port 80. I'm obviously running HTTP over it. What I am seeing is that for certain pages (reproducibly always the same ones), the HTML that comes back through the tunnel is truncated. I noticed that at least one of the affected pages was just over 16 kb in size. I also noticed that when the size of the generated HTML changes significantly, the HTML is suddenly no longer truncated. When the size of the generated HTML changes only by a few bytes, it still is truncated.
Free Windows Admin Tool Kit Click here and download it now
July 18th, 2010 2:11am

I had the same issue (Putty, tunneling and Windows 7 64-bit) and have just fixed it by selecting strictly IPv6 instead of Auto when defining the port forwarding. Hope this information will help other participants of this post. Best regards, Sergiy Korzh EasyQuery - user-friendly query builder for your application. Umail.net - one mailbox, many email addresses.
August 6th, 2010 10:55am

I had the same issue (Putty, tunneling and Windows 7 64-bit) and have just fixed it by selecting strictly IPv6 instead of Auto when defining the port forwarding. Hope this information will help other participants of this post. Best regards, Sergiy Korzh EasyQuery - user-friendly query builder for your application. Umail.net - one mailbox, many email addresses. How do you configure Firefox to connect to the Putty proxy when Putty is using IPv6 for tunneling? I get a error message in Firefox when it tries to connect to the proxy. (P.S. I had this working fine in XP, too; so I know how to set it up normally.)
Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2011 10:51am

SOLVED http://www.nikhef.nl/~janjust/CifsOverSSH/VistaLoopback.html Thanks to Jan Just!!
May 17th, 2011 7:09pm

Strict ipv6 don't work for me. @ubundom => It's for smb protocol on port 445. We look for dynamic tunneling over ssh. I can't configure well. Someone success?
Free Windows Admin Tool Kit Click here and download it now
March 6th, 2012 5:21am

I tried a lot with putty graphical interface. Didn't work. plink.exe solved the issue to me. http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html The tunnel worked flawlessly. plink -v -P 22 -N -l username -i private-key.ppk -L local_ip:local_port:remote_ip:remote_port ssh_server_name Thanks to Barend Garvelink (http://stackoverflow.com/questions/4974131/how-to-create-ssh-tunnel-using-putty-in-windows)
June 29th, 2012 10:33am

I got it to work with Putty and Firefox alone. My machine: Win 7 Professional x64 Service Pack 1 Under the SSH -> Tunnel section in putty I did the following: Source Port: whatever you want ie 1337 Destination: localhost Select radio butons: Dynamic and IPv4 (Which is what I use on my Win7 box) Then Click Add. Don't be alarmed if it shows up as something like 4D1337. In Firefox install FoxyProxy... http://getfoxyproxy.org/downloads.html set the following proxy up and route either all traffic or just specified url through the proxy. Manual Proxy Configuration Host or IP Address: localhost Port: ip you chose ie 1337 Check SOCKS proxy and choose SOCKS v5 Click Ok Then refresh internet page and see if you have a change. Hopefully this helped you out. Nails
Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2012 11:38pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics