Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

I cannot use ssh to tunnel from Linux to Windows:

Dec 5, 2005 1:26PM PST

I have installed filezilla and putty on the windows XP machine. I dont really need anything on Linux fedora 4.
when I type ssh mycomputername I get:

ssh: connect to host mycomputername port 22: Connection refused.

or when I use the command sftp mycomputername I get:

ssh: connect to host mycomputername port 22: Connection refused Couldn't read packet: Connection reset by peer

If anyone could tell me how to fix this small issue it would be great thanks.

Gary.

Discussion is locked

- Collapse -
SSH
Dec 6, 2005 4:10AM PST

Make sure that ssh is running on the Linux Machine. Also check that port 22 is not being blocked by a Firewall. This is assuming that you are trying to ssh from Windows to Linux.

Hope this helps
Bryan

- Collapse -
ssh
Dec 6, 2005 6:51PM PST

No I am connecting from Linux to Windows XP. I have a norton firewall however I tryed to ssh into windows with the firwall not configured. still says something to the affect of:

connection refused on port 22.

Could it be my router it is a lynksys.

I can connect via putty and filezilla from windows to Linux.

- Collapse -
Is the ssh service on Windows running?
Dec 6, 2005 8:45PM PST

Here, it's just 2 things to get OpenSsh running on a box. The service and the poking at the firewall. Sorry, I don't offer any support of firewall configuration.

Bob

- Collapse -
ssh
Dec 10, 2005 11:13PM PST

Bob,

I am running filezilla and putty. I just cant login via ssh from Linux to my windows computer. I even turned off the firewall. Could it be the router?

Gary

- Collapse -
Given such details on the router.
Dec 11, 2005 12:00AM PST

We could check with anyone to guess that one.

Sorry, but I must ask why the lacking details?

Bob

- Collapse -
ssh and router
Dec 11, 2005 12:46AM PST

Bob,

Okay I have a Linksys router. I am not sure if it is even possible to use ssh at the terminal in Linux to get a secure tunnel into a Windows XP Pro machine or not. I am running filezilla and putty on the Windows machine. Filezilla works great and picks up when I am ftping from another machine. I can securely access Linux via putty from the windows machine however the I use the get command to get something from the Linux machine it goes to the directory on the Linux machine when I want the file to end up on the Windows machine. I am sure it is a small problem. I know to open two terminals on the Linux machine. one for ssh, the other for sftp. I cant connect to the Windows machine via ssh from Linux. I have disabled both Windows firewall as well as Nortons. The only thing I can think of is either ssh is not compatible (Linux to Windows) or there is something up with my router.

- Collapse -
Yes. It has been done here (to/from XP)
Dec 11, 2005 12:53AM PST

However, I'm using Openssh, WinSCP and not filezilla.

Maybe it's your brew?

One thing to try is to ssh to 127.0.0.1 on the Windows machine. You can then verify you setup the box proper. This way no router is involved.

Bob

- Collapse -
SSH
Dec 11, 2005 2:54AM PST

I have heard and used putty but is it a Server. The Windows machine needs to be running a SSH Server not just the putty client. "Connection Refused" usually means the service is not running. Depending on your Firewall setup you would either get no reply or a can not connect message if it was a Firewall. Make sure the Windows SSH Server is running. What SSH Server are you running on the Windows machine?

HTH
-Bryan

- Collapse -
ssh server?
Dec 11, 2005 5:32AM PST

I have putty and filezilla thats it. If I am supposed to have a ssh server what one would you recommend? I use putty to ssh from windows. I thought it would pop up or kick in when another host would attempt to ssh into windows however this seems not to work...

- Collapse -
While I noted it early on, you seem to have missed the servr
Dec 11, 2005 5:47AM PST

Look up OPENSSH on google.com A server component is ready for you to use.

Bob

- Collapse -
OPENSSH
Dec 11, 2005 3:38PM PST

Bob,

Hey thanks for the help I will get back to you. I am going to look around for the server component for windows.

- Collapse -
OPENSSH windows
Dec 12, 2005 7:25PM PST

Bob,

Hey thanks it took a while to find it actually as the main contributers seemed to have gotten tired of dealing with people like myself. I have installed the server on both Windows machines. I am now able to use ssh gary@computername at the command line. I am wondering if I am to be using ssh as I would with Linux:

You start a terminal and ssh a server then
open another terminal to scp or sftp the server

I am just wondering if I am actually in a secure tunnel when I am using sftp. For some reason I am not able to use scp. I get:

file or directory does not exist.

I am a student at ITT and not experienced. I do however have a home network with Server 2003 (AD DHCP DNS), XP, 98, Linux. All of which can communicate securely as long as I stick with using samba and not ftp. Thanks for any input.

- Collapse -
Why this happens.
Dec 12, 2005 8:13PM PST

The tired of dealing with issue occurs because many want support but fail to realize that after a few hundred then that is over for the author. It's also clear that you missed some initial clues that were provided in this discussion so that leads me to ask that you apply yourself and use the documentation as well as google.com

If WinSCP fails, then you research why as well as never write "it doesn't work" as that is sorely short of any usuable details to dissect why it didn't.

Bob

- Collapse -
Bob
Dec 13, 2005 1:09AM PST

Bob,

Look I have done an awfull lot of googling and I have open ssh running fairly well. I am just wondering where I am failing when trying to use scp. I can sftp. As a student I rely on the brilliant minds from a few of the discussion forums that I attend and make good use of them. As far as the clues you gave me such as look up ssh on google I had allready done that. There are very few authors hosting ssh anymore hence the reason I am at this forum.

I dont have a terminal such as the one that Linux offers. I use the cmd line in Windows. I know that my books show to use to terminals one for ssh and the other for either scp or sftp. I have been trying this method with the cmd line in Windows.

- Collapse -
About WinSCP.
Dec 13, 2005 1:16AM PST

So far there is not enough clues about why it doesn't work for you.

As to google answers and such, my first reply noted OpenSSH and the server component (please check that) but you didn't seem to use the info. Sadly this means you may have missed other clues or settings.

There are great people here, but if answers are supplied then ignored, what happens next?

Did you try FILEZILLA?

Bob