Kodi Community Forum

Full Version: SFTPSession: Password present, but server does not support password authenticati
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi people, I´m having problems connecting to SFTP on kodi 16.1 running on a raspberry pi 2.
First off all, I want to be clear that i can connect outside my lan via ssh (putty) and SFTP (cyberduck), without problem.

So I install kodi on a macbook air, and when I tried to add the source I have this problem "SFTPSession: Password present, but server does not support password authentication",

This is the kodi.log (I replace my web address with xxxx)

`21:08:11 T:140735139086336 NOTICE: initialize done
21:08:11 T:140735139086336 NOTICE: Running the application...
21:08:11 T:140735139086336 NOTICE: starting zeroconf publishing
21:08:11 T:140735139086336 NOTICE: starting upnp client
21:08:11 T:123145315872768 NOTICE: ES: Starting UDP Event server on 127.0.0.1:9777
21:08:11 T:123145315872768 NOTICE: UDP: Listening on port 9777
21:08:22 T:123145312116736 ERROR: SFTPSession: Password present, but server does not support password authentication
21:08:22 T:123145312116736 ERROR: SFTPSession: No authentication method successful
21:08:22 T:123145312116736 ERROR: SFTPSession: Not connected, can't list directory 'media/external/tvshows/'
21:08:22 T:140735139086336 ERROR: GetDirectory - Error getting sftp://USERNAME:PASSWORD@xxxxx.no-ip.org:22/media/external/tvshows/
21:08:22 T:140735139086336 ERROR: CGUIMediaWindow::GetDirectory(sftp://USERNAME:PASSWORD@xxxxx.no-ip.org::22/media/external/tvshows/) failed
21:08:25 T:140735139086336 ERROR: Unable to activate the previous window
21:08:27 T:140735139086336 NOTICE: Storing total System Uptime
21:08:27 T:140735139086336 NOTICE: Saving settings

Somebody can help me? I have search all over internet, but no clue. I have to change some settings on openssh on the raspberry??

Thanks for your help!
I am having the exact same problem...!

Also from Kodi.log (replaced IP address with server IP)

23:20:39 T:140304655345600 NOTICE: WakeOnAccess [ServerIP] trigged by accessing : sftp://USERNAME:PASSWORD@ServerIP:22
23:20:39 T:140304655345600 NOTICE: WakeOnAccess success exit, server already running
23:20:44 T:140301062891264 ERROR: SFTPSession: No authentication method successful
23:20:44 T:140301062891264 ERROR: SFTPSession: Not connected, can't list directory '/shares/Pictures/'
23:20:44 T:140304655345600 ERROR: GetDirectory - Error getting sftp://USERNAME:PASSWORD@ServerIP:22
23:20:44 T:140304655345600 ERROR: CGUIMediaWindow::GetDirectory(sftp://USERNAME:PASSWORD@ServerIP:22
23:20:44 T:140302639671040 NOTICE: Thread BackgroundLoader start, auto delete: false

The crazy thing is, I was SSH'ed into the Kodi box from my laptop, then SSHing to the server IP, all over SSH (22) at the exact same time.
Meaning there is no connectivity problems (btw its all 1000baseT networking between everything)
And only 2mins earlier I finished watching a show from the exact same server IP over SSH.

22:27:36 T:140302639671040 NOTICE: Thread FileCache start, auto delete: false
22:27:37 T:140301733713664 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: HEVC (High Efficiency Video Coding)
22:27:39 T:140304655345600 NOTICE: DVDPlayer: Opening: sftp://USERNAME:PASSWORD@ServerIP:22/shares/
22:27:39 T:140304655345600 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
22:27:39 T:140302639671040 NOTICE: Thread DVDPlayer start, auto delete: false
22:27:39 T:140302639671040 NOTICE: Creating InputStream
22:27:39 T:140302690023168 NOTICE: Thread FileCache start, auto delete: false
22:27:39 T:140302639671040 NOTICE: Creating Demuxer
22:27:39 T:140302639671040 NOTICE: Opening stream: 0 source: 256

Its really infrequent too and it started happening when I reinstalled Kodi 16.1 (via Kodiubuntu) to a SSD drive.
I installed Kodi 14.0 (complied Dec 23 2014) on Thursday 16th Aug 2016 to my SSD.

I tried the request again a while later and got in and this is the log.

23:46:40 T:140304655345600 NOTICE: WakeOnAccess [ServerIP] trigged by accessing : sftp://USERNAME:PASSWORD@ServerIP:22/shares/
23:46:40 T:140304655345600 NOTICE: WakeOnAccess success exit, server already running
23:46:55 T:140302690023168 NOTICE: Thread BackgroundLoader start, auto delete: false

Its certainly not,
the physical network (everything is 1000baseT and nothing has changed (even setup the server to ping the Kodi box with no drops).
the server (nothing has changed in forever, and it worked everytime when I use to run Kodi on the HDD )
permissions as nothing has changed since forever
user accounts for the same reason and I just SSH'ed into the ServerIP using the exact same account Kodi is using

I'm lost but wondering about the Wake on Lan thing (which isn't turning on or off my server IP) wondering if its messing with the request?