alex-donnan / SyncFTP

An Obsidian.md plugin that allows users to add their own SFTP host and credentials to sync to and from.
MIT License
23 stars 4 forks source link

Add ssh key possibility to connection #11

Open wolfcomp opened 5 months ago

wolfcomp commented 5 months ago

A simple implementation to get ssh keys to be able to be used with the plugin as I have only access to my SFTP server with ssh keys and decided to figure out how to modify the code to allow for this.

I have tested this and it does work as i also use a passphrase for my key file so i decided the easiest solution is to use the password field as the ssh key passphrase if the key file is specified

What might be needed is to check if the file actually exists but this works for my need and i cant spend much more time on it.