chromeos-filesystem-sftp icon indicating copy to clipboard operation
chromeos-filesystem-sftp copied to clipboard

Finishing SSH2 session failed - -5 11

Open WesLee91 opened this issue 5 years ago • 6 comments

Unable to add network folder (SFTP) due to error.

I am able to access the folder on the same device using a different application, and from my desktop via Filezilla, both using SFTP and the same credentials.

On PixelBook ChromeOS 67.0.3396.99 (Official Build) (64-bit)

Fill out details correctly Press Mount

Error saying "Finishing SSH2 session failed - -5 11" appears

WesLee91 avatar Aug 03 '18 12:08 WesLee91

@WesLee91 The error code -5 means "Encryption key exchange with the remote host failed.". Maybe, your server might not support the key exchange methods "diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, diffie-hellman-group-exchange-sha1, diffie-hellman-group-exchange-sha256". These methods have already been old currently, therefore, your server doesn't support them, I guess.

yoichiro avatar Feb 19 '19 21:02 yoichiro

I have same issue but manual explicitly lists that they use: diffie-hellman-group-exchange-sha256

Key Exchange: diffie-hellman-group-exchange-sha256

Message Authentication Code: hmac-sha2-256 hmac-sha2-512

HostKey Algorithm: ssh-rsa

Landsil avatar May 10 '19 09:05 Landsil

@WesLee91 I'm getting the same error and I think you may be be right. However, according to openssh people themselves, those key exchange methods are unsafe and reserved for legacy use cases. Have got you any time/plans to use newer, safer methods?

cortopy avatar Sep 27 '19 20:09 cortopy

I'm running into the same error and have to fall back to SMB as this won't connect to my NAS over sftp. I'm running openssh using modern Kex algorithms and Ciphers. Is this going to be fixed as I would LOVE to ditch SMB.

edit: Had to enable "diffie-hellman-group1-sha1" to get it to mount but then it wouldn't allow sharing with Linux.

cmgreenman avatar Jun 19 '21 03:06 cmgreenman

Getting the same error trying to connect to my SFTP at Dreamhost, verified in a web-based SFTP, and didn't have any issues. Any resolution coming?

jaredzimmerman avatar Aug 15 '21 15:08 jaredzimmerman

Same thing happening to me, still. Is there a workaround? Setting key exchange methods in dreamhost or something?

ktkonrad avatar Nov 03 '22 01:11 ktkonrad