For any future dwellers looking to do password-based authentication for SSHFS shares, I have created a super-simple addon that will take care of this for you. It uses SSHFS from LibreELEC Network Tools to create a native (non-Kodi) SSHFS mount using password-based authentication.
The addon .zip is attached to this post.
Install
Install addon from .zip file, select the downloaded zip
LibreELEC Network Tools is a dependency. If you do not already have it installed, it will be installed for you. You will need to restart your box before you can use SSHFS Password Mount if Network Tools was not previously installed. If you don't, you'll get an error.
Configuration
The configuration for the addon must be completed in Kodi before running the script. The options are pretty self-explanatory.
Username - the SSH username to connect to the SSH server with
Hostname - the hostname or IP address of the SSH server you want to connect to
Remote Path - the directory on the remote host that you want to connect to (like /media/movies)
Local Path - the directory on the local host that you want to mount the connection into (like /storage/sshfs)
Trigger video library update on success - runs a video library scan after successfully mounting the share
Trigger music library update on success - runs a music library scan after successfully mounting the share
I recommend disabling library scans for video and music on Kodi startup, and instead enable the appropriate options above.
Using
Once configured, simply run the addon. It will ask you for a password and then attempt to mount the share. It will let you know if there's a problem.
Now you can add the new share to your video/music library by browsing to the directory you set in 'Local Path'.
Autostart
If you want this script to auto-start when Kodi starts, SSH into your box and execute the following...
echo "import xbmc" >> ~/.kodi/userdata/autoexec.py
echo "xbmc.executebuiltin('RunScript(script.sshfs-pw-mount)')" >> ~/.kodi/userdata/autoexec.py
The SSHFS Password Mount password dialog will now pop up as soon as Kodi starts.
I hope this helps someone!
-KJack