Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Smitro on February 09, 2007, 08:48:18 AM

Title: SFTP Access No longer
Post by: Smitro on February 09, 2007, 08:48:18 AM
Hi all,

I've had my users connecting via SFTP to upload files to there websites. For some reason this has just stopped. I'm not sure exactly when it stopped but it may have had something to do with upgrading to v7.1

I had dungog package:
smeserver-remoteuseraccess-1.2-6.noarch.rpm
but then when I got this error, I went looking and found an upgrade, so I upgraded over the top with:
smeserver-remoteuseraccess-1.2-10.noarch.rpm

Users can't login when they only have RSSH + VPN access. But when I give them Shell Access it works no problem.

When using CoreFTP this is the error I get.

Quote
looking up host "domain.removed"
Connecting to 192.168.1.254 port 22
Server version: SSH-1.99-OpenSSH_3.9p1
version: SSH-2.0-SSH-Local: Mar 31 2005 11:27:49
Using SSH protocol version 2
processing group exchange
processing key exchange
Host key fingerprint is:
ssh-rsa 1024 <key removed>
Initialized AES-256 client->server encryption
Initialized AES-256 server->client encryption
Sent password
Access granted
Opened channel for session
Started shell session
Server sent command exit status 0
All channels closed. Disconnecting
Unable to initialize SFTP: 潣汵⁤潮⁴潣湮捥t (sftp not enabled?)
Can't establish connection --> domain.removed:22 @ Fri Feb 09 17:33:53


I'm lost as where to start on this one?
Title: SFTP Access No longer
Post by: stephen noble on February 11, 2007, 04:14:08 AM
is the db value set
does it update the rssh.conf file
if sftp doesn't work report a bug

[root@kiwi SOURCES]# cat /etc/rssh.conf
logfacility = LOG_USER
umask = 022
user = mm:022:11111:

[root@kiwi SOURCES]# db accounts show mm
mm=user
    Shell=/usr/bin/rssh
    Street=Long Tan
    Sudoer=no
    Uid=5011
    VPNClientAccess=yes
Title: SFTP Access No longer
Post by: Smitro on February 11, 2007, 12:07:37 PM
Both of these contain the same variables as you have said and a few extras.

I've also checked and when you change the users access from RSSH to Shell Access the variables change. So it's obviously updating it's self ok. And as soon as I change the user from Shell access to RSSH + VPN the user gets the error message as above. As soon as I change the user back to Shell Access, they can login without a problem.

I'll add a bug report I guess. Weird thing is that it use to work.
Title: SFTP Access No longer
Post by: stephen noble on February 11, 2007, 01:18:58 PM
Things change constantly
Title: SFTP Access No longer
Post by: okepc on February 12, 2007, 10:42:51 AM
This happened to me also.
After investigating the matter i was hacked through a php script which was in a old outdated php app.
After the hack things were screwed and i couldn't use sftp anymore.

I did a format and a clean install.

Dirk
Title: Re: SFTP Access No longer
Post by: CharlieBrady on February 13, 2007, 04:19:48 AM
Quote from: "Smitro"

I've had my users connecting via SFTP to upload files to there websites. For some reason this has just stopped.


Please report all problems via the Bug Tracker, and only there. Thanks.
Title: SFTP Access No longer
Post by: Smitro on February 13, 2007, 11:54:49 AM
Quote
Please report all problems via the Bug Tracker, and only there.

I didn't know it was a bug till after I asked here.

I've submitted the bug here:  http://bugs.contribs.org/show_bug.cgi?id=2470
Title: SFTP Access No longer
Post by: skydivers on February 17, 2007, 03:23:52 PM
I experience the same problem.
WinSCP gives the following error: Is the host running a ftp server?

If I give shell access -> no prob

I'm also using the 1.2-10 contrib from dungog.

Greetz
Title: SFTP Access No longer
Post by: stephen noble on February 18, 2007, 12:07:31 AM
comments to the above bug please