Cannot initialize SFTP protocol. Is the host running a SFTP

Advertisement

dovid
Joined:
Posts:
2

Cannot initialize SFTP protocol. Is the host running a SFTP

Hi,

I'm having problems logging in for the first time:

The log is:
. 2006-02-09 13:59:00.828 Looking up host "99.99.99.99"
. 2006-02-09 13:59:00.828 Connecting to 99.99.99.99 port 22
. 2006-02-09 13:59:00.937 Server version: SSH-1.99-OpenSSH_3.6.1p2
. 2006-02-09 13:59:00.937 We claim version: SSH-2.0-WinSCP_release_3.8
. 2006-02-09 13:59:00.937 Using SSH protocol version 2
. 2006-02-09 13:59:01.000 Doing Diffie-Hellman group exchange
. 2006-02-09 13:59:01.156 Doing Diffie-Hellman key exchange
. 2006-02-09 13:59:02.000 Host key fingerprint is:
. 2006-02-09 13:59:02.000 ssh-rsa 1024 30:ef:42:c8:2f:ea:80:03:be:60:c0:f9:0a:b1:5c:d1
. 2006-02-09 13:59:02.000 Initialised AES-256 client->server encryption
. 2006-02-09 13:59:02.000 Initialised HMAC-SHA1 client->server MAC algorithm
. 2006-02-09 13:59:02.000 Initialised AES-256 server->client encryption
. 2006-02-09 13:59:02.000 Initialised HMAC-SHA1 server->client MAC algorithm
! 2006-02-09 13:59:02.140 Using username "userid".
. 2006-02-09 13:59:02.265 Keyboard-interactive authentication refused
. 2006-02-09 13:59:02.265 Session password prompt (userid@99.99.99.99's password: )
. 2006-02-09 13:59:02.265 Asking user for password.
. 2006-02-09 13:59:18.031 Sent password
. 2006-02-09 13:59:18.109 Access granted
. 2006-02-09 13:59:18.156 Opened channel for session
. 2006-02-09 13:59:18.218 Started a shell/command
. 2006-02-09 13:59:18.218 Server sent command exit status 1
. 2006-02-09 13:59:18.218 --------------------------------------------------------------------------
. 2006-02-09 13:59:18.218 Using SFTP protocol.
. 2006-02-09 13:59:18.218 Doing startup conversation with host.
> 2006-02-09 13:59:18.218 Type: SSH_FXP_INIT, Size: 5, Number: -1
. 2006-02-09 13:59:18.281 All channels closed. Disconnecting
. 2006-02-09 13:59:18.281 Server closed network connection
* 2006-02-09 13:59:18.281 (ESshFatal) Cannot initialize SFTP protocol. Is the host running a SFTP server?
* 2006-02-09 13:59:18.281 Connection has been unexpectedly closed. Server sent command exit status 1.
Any help is appreciated.

regards
David J.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Cannot initialize SFTP protocol. Is the host running a SFTP

Try other SFTP client. If you still cannot connect, it's server-side problem.

Reply with quote

dovid
Joined:
Posts:
2

Tried with just SFTP

Hi,

Just tried with just SFTP.

Got the same error.

It does connect to the server.

What do u think could be the problem on the server.

Thanks for your help.

dj

Reply with quote

Advertisement

affinity
Guest

Resoluation to Problem

My son has an scponlyc "shell" login on one of my servers.

He started to get this error:
Cannot initialize SFTP protocol. Is the host running a SFTP server?
He was trying to connect using WinSCP ....

The problem was that the chroot home directory wasn't owned by root, so the login failed. I fixed this and made sure his group could write to the directory, but it is now owned by root.

Reply with quote

kevymerry
Guest

cannot intialize sftp

I received same message, I realized my password was about to expire. I reset password, and then was able to connect.

Reply with quote

Meir
Guest

Cannot initialize SFTP protocol. Is the host running a SFTP

Hi all,

I have the same error in my server.
In the first time I get the error message, In the second time I get the access.
I'm using with this connection MySecureShell to be able to lock the user in his HOMEDIR.

Some one have a clue about this error?

Reply with quote

metal
Guest

home dir hidden files

Hello!

Please check the .profile, .bash_history, .bash_logout and .bashrc

They should have 755 permission – I changed these permission to 700 and started getting that same error.

Reply with quote

Advertisement

Guest

Re: home dir hidden files

metal wrote:

Please check the .profile, .bash_history, .bash_logout and .bashrc
Oh my gosh! Thanks a lot.

I've been wondering for a long time why I keep getting this message all of a sudden. Could have never figured that it would be a permission setting on a .bashrc file.

Reply with quote

David Docekal
Guest

Re: home dir hidden files

Change the ForceCommand line in /etc/ssh/sshd_config to:
ForceCommand internal-sftp
This helped!
Thanks a lot

Reply with quote

Advertisement

kevinleahy
Guest

For me the problem was that I was echo-ing text to the screen in .bashrc.
As soon as I removed this it worked.

Reply with quote

IvanSP
Guest

Cannot initialize SFTP protocol. Is the host running a SFTP

I was getting this error because my password expired. I reseted my password using PuTTY and worked.

Reply with quote

Mystical2k
Guest

Re: home dir hidden files

Change the ForceCommand line in /etc/ssh/sshd_config to:
ForceCommand internal-sftp
For me too after days of trying out different file configs! Awesome!

Reply with quote

Advertisement

Charles87
Guest

Re: home dir hidden files

metal wrote:

Please check the .profile, .bash_history, .bash_logout and .bashrc
This worked for me too! Thanks for the tip!

Reply with quote

Raju Balpande
Guest

Solution: This is because the password is expired. Change password using putty.

Hi all,
I faced this error, it was due to my password was expired, When I tried to login to terminal console using PuTTY it asked me to reset the password. After resetting password I am able to log in using WinSCP.

Thanks,
Raju Balpande.

Reply with quote

Advertisement

gaurav0918
Joined:
Posts:
1
Location:
New Delhi, INdia

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

Issue: We get this error while accessing SFTP server through Windows 10 machine:
Cannot initialize SFTP protocol. Is the host running a SFTP server? WinSCP error
Solution: Provide the path of the SFTP server, as shown in attached screenshot.

Description: Please click here to see the screenshot.

winscp-sftp-troubleshoot.PNG

Reply with quote

martin
Site Admin
martin avatar

Re: Cannot initialize SFTP protocol. Is the host running a SFTP server.

@gaurav0918: That's not a solution. That's a workaround for a misconfigured SFTP server. Please get the server fixed instead.

Reply with quote

DC
Guest

Cannot initialize SFTP protocol. Is the host running an SFTP server? VCSA

I was facing this issue while trying to connect WinSCP to VCSA 6.5.
Problem : Connect to VCSA via PuTTY you will get below screen instead of
Connected to service

    * List APIs: "help api list"
    * List Plugins: "help pi list"
    * Enable BASH access: "shell.set --enabled True"
    * Launch BASH: "shell"
Try the following steps: https://kb.vmware.com/s/article/2100508

Once you permanently configure the default Shell to BASH for Root this issue will be fixed.

Reply with quote

Advertisement

You can post new topics in this forum