Hi all,
I have a SFTP server (SSH access) which is for me the easiest way to configure it as it's simple to configure for macOS or Linux.
I created a "kodi" account which gives access to my shared disk. I'm now trying to configure SSH to enable Kodi to connect without password (with IdentityFile).
So I placed the "authorized_keys" file in kodi's .ssh folder on the server.
Here's my ssh_config on LibreElec :
LibreELEC:~ # cat .ssh/config
Host     medias
HostName medias-server
User kodi
IdentityFile /storage/.ssh/id_medias
	
	Here is my hosts on LibreElec :
LibreELEC:~ # cat .config/hosts.conf
# hosts.conf
# This configuration file allows you to manually map hostnames to
# IP addresses
# Format:  <ipaddress> <hostname1> <hostname2>
# Example: 192.168.0.3 libreelec libreelec.mynetwork
# NOTE: do not edit /etc/hosts directly
# edit /storage/.config/hosts.conf then reboot
192.168.1.XXX    medias-server
	
			Display More
	It's all OK, as I can connect with SSH in Terminal without password :
LibreELEC:~ # ssh medias
Last login: Fri Nov 29 15:04:47 2019 from 192.168.1.YYY
MediasServer:~ kodi$
	
	Strangely, when I try to add sources from this server, I'm forced to use a password authentication. LibreElec recognize the host "medias-server" defined in .config/hosts.conf but not more the "medias" host which is defined in .ssh/config.
In .kodi/userdata/sources.xml, this line works well, with user & password authentication :
But not this one :
Could you help me to configure my sources to use a IdentityFile autenthication ? Also, I'd like to Chroot user kodi in /Volumes/Medias/ but as I add this line in my server's sshd_config, libreelec can't connect no more :
SSHD_CONFIG :
[...]
Match User kodi
    ChrootDirectory /Volumes/Medias/
    ForceCommand sftp
[...]
LibreELEC:~ # ssh medias
packet_write_wait: Connection to 192.168.1.XXX port 22: Broken pipe
	
	Thanks for help.