Topic "Error: Cannot initialize SFTP protocol."

Author Message
al0323

Guest


I am using version 4.0.4 (build 346) with explorer like environment.

The protocol is setup as SFTP Yes, Allow SCP Fallback.

When I try to logon to the server, I get the following error:
"Connection has been unexpectedly closed. Server sent command exit status 1. Cannot initialize SFTP protocol. Is the host running a SFTP server?"

My colleague has the same configuration but is running version 3.8.2 and is able to connect.

What could be the problem?

Thank you.
Advertisements
al0323

Guest


Turns out my password on the server had expired. I reset my password and am able to connect fine.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Please read documentation for common reasons of getting this error and some resolution hints.
_________________
Martin Prikryl
rasoler

Guest


I had an error in my .bashrc login script and this was causing the error
anonymous1241

Guest


I had this issue and it turned out to be because I had added a new script to my .cshrc (the csh equivalent to .bashrc) that required a tty in order to run. When WinSCP tunnels over ssh there isn't a tty, so it couldn't run the script and couldn't log in.
Jazzykeith

Guest


I have Ubuntu Linux running on an Amazon "small" instance server. It has been working ok until now
When logging in I get the message "
---------------------------
Cannot initialize SFTP protocol. Is the host running a SFTP server?
---------------------------
OK Reconnect (1 s) Help
---------------------------

This was working ok and no changes to winscp have been made . We can connect via putty with no error. To the best of my knowledge nothing has changed on the Amazon server
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Jazzykeith wrote:
I have Ubuntu Linux running on an Amazon "small" instance server. It has been working ok until now
When logging in I get the message "
---------------------------
Cannot initialize SFTP protocol. Is the host running a SFTP server?
---------------------------
OK Reconnect (1 s) Help
---------------------------

This was working ok and no changes to winscp have been made . We can connect via putty with no error. To the best of my knowledge nothing has changed on the Amazon server

Can you post a log file both from WinSCP and PuTTY?
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
For details about error message "Cannot initialize SFTP protocol. Is the host running a SFTP server?" see:
https://winscp.net/eng/docs/message_cannot_initialize_sftp_protocol
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License