Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: peterhocking on May 14, 2010, 03:14:53 PM

Title: WinSCP
Post by: peterhocking 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
Title: Re: WinSCP
Post by: cactus 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
Title: Re: WinSCP
Post by: CharlieBrady 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.
Title: Re: WinSCP
Post by: cactus 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.
Title: Re: WinSCP
Post by: qvindesland 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?
Title: Re: WinSCP
Post by: MSmith 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.
Title: Re: WinSCP
Post by: CharlieBrady 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.
Title: Re: WinSCP Fixed
Post by: peterhocking 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 :)
Title: Re: WinSCP Fixed
Post by: CharlieBrady 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.