Koozali.org: home of the SME Server

Cannot initialize SFTP protocol. Is the host running a SFTP server?

Offline confiarus

  • **
  • 26
  • +0/-0
Using WinSCP, I'm able to connect via sftp when logging in as "root".  However, when
trying to connect as other user, admin or any other user, I get the following message:

Cannot initialize SFTP protocol. Is the host running a SFTP server?

In server-manager, everything is open for local lan access.  Does anyone have an idea
as to why "root" user is allowed sftp access, but, other users arent ??

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Cannot initialize SFTP protocol. Is the host running a SFTP server?
« Reply #1 on: April 25, 2008, 12:32:52 PM »
Using WinSCP, I'm able to connect via sftp when logging in as "root".  However, when
trying to connect as other user, admin or any other user, I get the following message:

Cannot initialize SFTP protocol. Is the host running a SFTP server?

In server-manager, everything is open for local lan access.  Does anyone have an idea
as to why "root" user is allowed sftp access, but, other users arent ??
AFAIK only FTP is implemented, no sFTP.
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 raem

  • *
  • 3,972
  • +4/-0
Re: Cannot initialize SFTP protocol. Is the host running a SFTP server?
« Reply #2 on: April 25, 2008, 02:59:14 PM »
confiarus & cactus

Quote
AFAIK only FTP is implemented, no sFTP.

It's the other way around, sftp is implemented, ftp is no longer.

As far as access is concerned you need to enable access for each user.

yum --enablerepo=smecontribs install smeserver-remoteuseraccess

and configure requirements for each user in the new server manager panel.
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Cannot initialize SFTP protocol. Is the host running a SFTP server?
« Reply #3 on: April 25, 2008, 03:10:27 PM »
confiarus & cactus

It's the other way around, sftp is implemented, ftp is no longer.
That is strange, as I telnet to port 21 I am welcomed by the ftp daemon, but if I use the sFTP port (125) I get no connection. Are you sure that sFTP is already implemented, I have heard rumours, but based on above I doubt if it is already implemented.

sFTP does work but it is not a replacement of FTP, I still have FTP possibilities on my SME Server 7.3.
« Last Edit: April 25, 2008, 03:16:40 PM by cactus »
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 raem

  • *
  • 3,972
  • +4/-0
Re: Cannot initialize SFTP protocol. Is the host running a SFTP server?
« Reply #4 on: April 25, 2008, 03:23:46 PM »
cactus & confiarus

Apologies, it looks like ftp is still available (I'm sure there was talk of doing away with it), but sftp is available too, but secure shell access needs to be enabled
Read this from the server manager Remote Access panel:

Note: a secure shell sftp client can also be used to access the server, if remote access via the secure shell is enabled. This method of access protects the passwords and data of the FTP session, whereas standard FTP provides no protection.
...

Offline confiarus

  • **
  • 26
  • +0/-0
Re: Cannot initialize SFTP protocol. Is the host running a SFTP server?
« Reply #5 on: April 25, 2008, 11:28:10 PM »
RayMitchell

I ran the commands you sent and was able to give sftp access to other users.  Also, ftp works as well
fyi.  Thanks a bunch !!!!