SFTP sources does not work with password authentification (only auth works)
#1
I recently upgraded to Kodi 17 and now my SFTP shares no longer work.

Here is the log:
Code:
00:15:27.638 T:140358042469760  NOTICE: special://profile/ is mapped to: special://masterprofile/
00:15:27.638 T:140358042469760  NOTICE: -----------------------------------------------------------------------
00:15:27.638 T:140358042469760  NOTICE: Starting Kodi (17.0 Git:20170205-nogitfound). Platform: Linux x86 64-bit
00:15:27.638 T:140358042469760  NOTICE: Using Release Kodi x64 build
00:15:27.638 T:140358042469760  NOTICE: Kodi compiled Feb  5 2017 by GCC 6.3.1 for Linux x86 64-bit version 4.7.0 (263936)
00:15:27.638 T:140358042469760  NOTICE: Running on Arch Linux rolling, kernel: Linux x86 64-bit version 4.9.13-1-ck-sandybridge
00:15:27.638 T:140358042469760  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
00:15:27.638 T:140358042469760  NOTICE: Host CPU: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz, 4 cores available
00:15:27.638 T:140358042469760  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
00:15:27.638 T:140358042469760  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
00:15:27.638 T:140358042469760  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons
00:15:27.638 T:140358042469760  NOTICE: special://masterprofile/ is mapped to: /home/juha/.kodi/userdata
00:15:27.638 T:140358042469760  NOTICE: special://envhome/ is mapped to: /home/juha
00:15:27.638 T:140358042469760  NOTICE: special://home/ is mapped to: /home/juha/.kodi
00:15:27.638 T:140358042469760  NOTICE: special://temp/ is mapped to: /home/juha/.kodi/temp
00:15:27.638 T:140358042469760  NOTICE: special://logpath/ is mapped to: /home/juha/.kodi/temp
00:15:27.638 T:140358042469760  NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
00:15:27.638 T:140358042469760  NOTICE: Local hostname: panzor
00:15:27.638 T:140358042469760  NOTICE: Log File is located: /home/juha/.kodi/temp//kodi.log
00:15:27.638 T:140358042469760  NOTICE: -----------------------------------------------------------------------
00:15:27.653 T:140358042469760   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'OnLowBattery'
00:15:27.655 T:140358042469760   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'CanSuspend'
00:15:27.655 T:140358042469760   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property 'CanHibernate'
00:15:27.659 T:140358042469760  NOTICE: load settings...
00:15:27.670 T:140358042469760  NOTICE: Found 1 Lists of Devices
00:15:27.670 T:140358042469760  NOTICE: Enumerated PULSE devices:
00:15:27.670 T:140358042469760  NOTICE:     Device 1
00:15:27.670 T:140358042469760  NOTICE:         m_deviceName      : Default
00:15:27.670 T:140358042469760  NOTICE:         m_displayName     : Default
00:15:27.670 T:140358042469760  NOTICE:         m_displayNameExtra: Default Output Device (PULSEAUDIO)
00:15:27.670 T:140358042469760  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
00:15:27.670 T:140358042469760  NOTICE:         m_channels        : FL,FR
00:15:27.670 T:140358042469760  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
00:15:27.670 T:140358042469760  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
00:15:27.670 T:140358042469760  NOTICE:         m_streamTypes     : No passthrough capabilities
00:15:27.670 T:140358042469760  NOTICE:     Device 2
00:15:27.670 T:140358042469760  NOTICE:         m_deviceName      : alsa_output.pci-0000_00_1b.0.analog-stereo
00:15:27.670 T:140358042469760  NOTICE:         m_displayName     : Built-in Audio Analog Stereo
00:15:27.670 T:140358042469760  NOTICE:         m_displayNameExtra: Headphones (PULSEAUDIO)
00:15:27.670 T:140358042469760  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
00:15:27.670 T:140358042469760  NOTICE:         m_channels        : FL,FR
00:15:27.670 T:140358042469760  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
00:15:27.670 T:140358042469760  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
00:15:27.670 T:140358042469760  NOTICE:         m_streamTypes     : No passthrough capabilities
00:15:27.674 T:140358042469760  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
00:15:27.674 T:140358042469760  NOTICE: Loaded settings file from special://profile/advancedsettings.xml
00:15:27.674 T:140358042469760  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <network>
                                                <buffermode>1</buffermode>
                                                <!-- Default is 1 -->
                                                <cachemembuffersize>152428800</cachemembuffersize>
                                                <!-- Default is 20971520 bytes or 20 MB -->
                                                <readbufferfactor>2.0</readbufferfactor>
                                                <!-- Default is 1.0 -->
                                              </network>
                                              <videoscanner>
                                                <ignoreerrors>true</ignoreerrors>
                                                <!-- Silently ignore errors while scanning videos. -->
                                              </videoscanner>
                                              <video>
                                                <timeseekforward>10</timeseekforward>
                                                <!-- Skip back time X s -->
                                                <timeseekbackward>-10</timeseekbackward>
                                                <!-- Skip forward time X s -->
                                                <subsdelayrange>240</subsdelayrange>
                                                <!-- Subtitle offset adjustment range -->
                                              </video>
                                              <pathsubstitution>
                                                <substitute>
                                                  <from>http://192.168.7.2:8096</from>
                                                  <to>http://85.28.131.207:8096</to>
                                                </substitute>
                                              </pathsubstitution>
                                            </advancedsettings>
00:15:27.674 T:140358042469760  NOTICE: Default Video Player: VideoPlayer
00:15:27.674 T:140358042469760  NOTICE: Default Audio Player: paplayer
00:15:27.674 T:140358042469760  NOTICE: Disabled debug logging due to GUI setting. Level 0.
00:15:27.674 T:140358042469760  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
00:15:27.674 T:140358042469760  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
00:15:27.674 T:140358042469760  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
00:15:27.674 T:140358042469760  NOTICE: Loaded playercorefactory configuration
00:15:27.674 T:140358042469760  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
00:15:27.674 T:140358042469760  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
00:15:27.679 T:140358042469760  NOTICE: Running database version Addons27
00:15:27.703 T:140358042469760  NOTICE: ADDONS: Using repository repository.xbmc.org
00:15:27.703 T:140358042469760  NOTICE: ADDONS: Using repository repository.sd-xbmc.org
00:15:27.706 T:140357602248448  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms
00:15:27.719 T:140358042469760  NOTICE: Checking resolution 16
00:15:27.780 T:140358042469760  NOTICE: Using visual 0x20
00:15:27.784 T:140358042469760  NOTICE: GL_VENDOR = Intel Open Source Technology Center
00:15:27.784 T:140358042469760  NOTICE: GL_RENDERER = Mesa DRI Intel(R) Sandybridge Mobile
00:15:27.784 T:140358042469760  NOTICE: GL_VERSION = 3.0 Mesa 17.0.0
00:15:27.784 T:140358042469760  NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.30
00:15:27.784 T:140358042469760  NOTICE: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_texture_barrier GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_timer_query GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_compressed_texture_pixel_storage GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_texture_mirror_clamp_to_edge GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_texture_barrier GL_EXT_polygon_offset_clamp GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_MESA_shader_integer_functions
00:15:27.879 T:140358042469760   ERROR: Unable to load libcec.so.4, reason: libcec.so.4: cannot open shared object file: No such file or directory
00:15:27.887 T:140357619033856  NOTICE: Running database version Addons27
00:15:27.888 T:140357619033856  NOTICE: Running database version ViewModes6
00:15:27.888 T:140357619033856  NOTICE: Running database version Textures13
00:15:27.889 T:140357619033856  NOTICE: Running database version MyMusic60
00:15:27.890 T:140357619033856  NOTICE: Running database version MyVideos107
00:15:27.891 T:140357619033856  NOTICE: Running database version TV29
00:15:27.891 T:140357619033856  NOTICE: Running database version Epg11
00:15:27.894 T:140358042469760  NOTICE: start dvd mediatype detection
00:15:28.007 T:140358042469760 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
00:15:28.072 T:140358042469760  NOTICE: UpdateLibraries: Starting video library startup scan
00:15:28.078 T:140358042469760  NOTICE: initialize done
00:15:28.078 T:140358042469760  NOTICE: Running the application...
00:15:28.081 T:140358042469760  NOTICE: starting zeroconf publishing
00:15:28.083 T:140358042469760  NOTICE: CWebServer[8080]: Started
00:15:28.083 T:140358042469760  NOTICE: starting upnp client
00:15:28.084 T:140355370481408  NOTICE: ES: Starting UDP Event server on port 9777
00:15:28.084 T:140355370481408  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
00:15:28.085 T:140358042469760   ERROR: Unable to load libshairplay.so.0, reason: libshairplay.so.0: cannot open shared object file: No such file or directory
00:15:28.085 T:140358042469760   ERROR: Failed to start AirTunes Server
00:15:28.168 T:140356159002368  NOTICE: VideoInfoScanner: Starting scan ..
00:15:28.201 T:140356541736704  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> Starting NextUp Service
00:15:28.201 T:140356541736704  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> ========  START NEXTUP SERVICE NOTIFICATION  ========
00:15:28.205 T:140356541736704  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> KODI Version: 17.0 Git:20170205-nogitfound
00:15:28.205 T:140356541736704  NOTICE: NEXTUP SERVICE NOTIFICATION Service -> NEXTUP SERVICE NOTIFICATION Version: 1.0.35
00:15:28.276 T:140356159002368  NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
00:15:28.371 T:140356142216960  NOTICE: [plugin.video.youtube] Startup: detected Krypton (Kodi-17.0), setting DASH_SUPPORT_BUILTIN = False, DASH_SUPPORT_ADDON = True
00:15:30.781 T:140356142216960   ERROR: GetDirectory - Error getting
00:16:13.227 T:140358042469760   ERROR: Previous line repeats 6 times.
00:16:13.227 T:140358042469760   ERROR: SFTPSession: No authentication method successful
00:16:13.227 T:140358042469760   ERROR: SFTPSession: Not connected, can't list directory ''
00:16:13.227 T:140358042469760   ERROR: GetDirectory - Error getting sftp://USERNAME:[email protected]:22/

The IP, username and password are all correct. I can connect to sftp from terminal just fine. It's just Kodi that does not want to.
What could be wrong here?
Reply
#2
I'd be grateful if you could put your log in a paste site please.

There is another thread about sftp failing on 17, although it works for me.

Why use it though?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#3
Here you go: http://pastebin.com/raw/3AbZeJc2

I use sftp because it is easy, convenient and safe, regardless I'm on on LAN or over the internet.
Reply
#4
I made some further discovery.

Adding SFTP share in Kodi works, but ONLY if there is a key present in the system. It completely ignores the password.
This is NOT the server's fault, because the server accepts password logins.

And this behaviour is in fact also in Kodi 16.

EDIT:
I think this is exactly the same problem, as this: http://trac.kodi.tv/ticket/13632
Looks like regression.
Reply
#5
it has always been like this, password auth is not supported for sftp
Reply
#6
(2017-03-01, 12:12)wsnipex Wrote: it has always been like this, password auth is not supported for sftp
So what's the point of "password" field in the "add SFTP source"?
Besides, this former bug seems to indicate that this has been fixed before:
http://trac.kodi.tv/ticket/13632
Reply
#7
(2017-03-01, 12:26)lockheed Wrote:
(2017-03-01, 12:12)wsnipex Wrote: it has always been like this, password auth is not supported for sftp
So what's the point of "password" field in the "add SFTP source"?
Besides, this former bug seems to indicate that this has been fixed before:
http://forum.kodi.tv/showthread.php?tid=...on=newpost
Link not working.
Reply
#8
(2017-03-01, 12:38)trogggy Wrote:
(2017-03-01, 12:26)lockheed Wrote:
(2017-03-01, 12:12)wsnipex Wrote: it has always been like this, password auth is not supported for sftp
So what's the point of "password" field in the "add SFTP source"?
Besides, this former bug seems to indicate that this has been fixed before:
http://forum.kodi.tv/showthread.php?tid=...on=newpost
Link not working.
My mistake: http://trac.kodi.tv/ticket/13632
Reply
#9
(2017-03-01, 12:12)wsnipex Wrote: it has always been like this, password auth is not supported for sftp

Come on, guys. If that is the case, then what would be the point of "password" field in SSH/SFTP configuration in Kodi?

Image
Reply
#10
When I say "it works for me" I remembered that I do have key based auth set up on my server, and the client I was accessing from. So I am perhaps a red herring!
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#11
This is a bizarre thread.... I have been using password authentication with ssh/sftp for ages and it was solid. ssh/sftp shares no longer work for me with Kodi 17, using either password authentication or key based.

Both password and key based authentication work perfectly when accessing the operating system directly.
Reply
#12
I have been strugling with this for many years. Its weird because sometimes this works and sometimes no. On my personal windows 10 pc its imposible, but then I try it on another pc with windows 7 and it works, the same for a mac.

So where is the problem? In the server (raspberry)? or in the clients (ports? settings?)

Fo my this is the last detail that would make KODI just PERFECT
Reply
#13
Just want to add something really strange. When I open Kodi using my wifi internet (outside of my home) I have the problem:

18:00:15.369 T:9104 ERROR: SFTPSession: Password present, but server does not support password authentication
18:00:15.369 T:9104 ERROR: SFTPSession: No authentication method successful

But then I try sharing internet from my phone to my laptop and IT WORKS!!!

NOTICE: VideoPlayer: Opening: sftp://USERNAME:[email protected]:22/media/xbmc/series/xxxxxxxxxxx.mp4

This is extremely weird. I test a few times, sharing internet from my phone work perfect every time, with my wifi connection the Password present error....

What do you think this could be? something blocked by mi isp?

Thanks! Hope I can help with this
Reply
#14
Hi,

I've recently updated my android tv box to 17. I have exactly the same pbm. Authenticated SFTP source to my LAN server (debian) worked fine before the update...

Since the update: i get exactly this error in logs:
"password present but server does not support authentication"

And no change was made on the SFTP server.

Any help would be appreciated :-)

BTW: thanks to the kodi-team, great project, great features...
Reply

Logout Mark Read Team Forum Stats Members Help
SFTP sources does not work with password authentification (only auth works)0