Koozali.org: home of the SME Server

WinSCP

Offline peterhocking

  • ****
  • 90
  • +0/-0
    • Welcome to the Hockings at Canberra
WinSCP
« on: May 14, 2010, 03:14:53 PM »
Hi everyone

I've built a new SME server with 2 NICs in server-gateway mode.

I've enabled remote access via SSH in the server-manager, set the port I want to use, set Secure shell access to allow public access, (entire internet), set Allow administrative command line access over secure shell to yes & Allow secure shell access using standard passwords to yes. I can connect from a remote PC in another city using SSH, but if I try to connect using WinSCP I get "Network error: Connection refused".

I can connect using WinSCP from my internal network OK.

Can anyone think of what I may have missed?

TIA

Peter

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: WinSCP
« Reply #1 on: May 14, 2010, 04:52:31 PM »
I've enabled remote access via SSH in the server-manager, set the port I want to use, set Secure shell access to allow public access, (entire internet), set Allow administrative command line access over secure shell to yes & Allow secure shell access using standard passwords to yes. I can connect from a remote PC in another city using SSH, but if I try to connect using WinSCP I get "Network error: Connection refused".
I seriously suggest you to read and implement the following for your SSH access as the method there is much safer: http://wiki.contribs.org/SSH_Public-Private_Keys
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: WinSCP
« Reply #2 on: May 14, 2010, 05:21:51 PM »
I seriously suggest you to read and implement the following for your SSH access as the method there is much safer: http://wiki.contribs.org/SSH_Public-Private_Keys

While that is very good advice, it won't solve a "connection refused" problem.

peterhocking, make sure that you check messages, ssh and secure logfiles.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: WinSCP
« Reply #3 on: May 14, 2010, 05:30:20 PM »
While that is very good advice, it won't solve a "connection refused" problem.

peterhocking, make sure that you check messages, ssh and secure logfiles.
I know, should have stated that. Thanks for pointing this out.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline qvindesland

  • *
  • 7
  • +0/-0
Re: WinSCP
« Reply #4 on: May 15, 2010, 10:44:06 PM »
I notice that you say in the beginning "set the port that I want to use" did you change the port on ssh to other then 22?

Offline MSmith

  • *
  • 675
  • +0/-0
Re: WinSCP
« Reply #5 on: May 15, 2010, 11:01:06 PM »
Set SSH back to local networks only, then use VPN to connect to the machine & use WinSCP to internal IP address.
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: WinSCP
« Reply #6 on: May 16, 2010, 03:14:23 AM »
Set SSH back to local networks only, then use VPN to connect to the machine & use WinSCP to internal IP address.

I wouldn't recommend that. SSH access using public/private keys is much more secure than PPTP. SSH using passwords on a non-standard port is also more secure.

Offline peterhocking

  • ****
  • 90
  • +0/-0
    • Welcome to the Hockings at Canberra
Re: WinSCP Fixed
« Reply #7 on: May 16, 2010, 05:20:02 AM »
Thanks everyone for your responses.

Turns out the issue was that I had FTP access allowed. Turning that off fixed. I had the same problem 2 & a half years ago when I build my last server.

Yes, I do use a non standard port for SSH for security reasons & thanks for the reminder to use Public & Private keys

Thanks again,

Peter :)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: WinSCP Fixed
« Reply #8 on: May 16, 2010, 04:37:59 PM »
Turns out the issue was that I had FTP access allowed.

IIUC, the real issue was that you were configuring WinSCP to use the FTP protocol.