quantumsheep / sshs

Terminal user interface for SSH
MIT License
963 stars 32 forks source link

Add SFTP support #84

Open iliesh opened 8 months ago

iliesh commented 8 months ago

Would be handy beside connecting by default through the ssh to have an option to connect through SFTP in order to copy/download files from the remote servers.

quantumsheep commented 8 months ago

How do you imagine the feature in sshs?

iliesh commented 8 months ago

I see it this way, once the host is selected, hitting Enter should initiate an SSH connection as it currently does. However, pressing CTRL-ENTER (for example) could trigger SSHFS to mount the remote folder and then open the file manager (like Ranger) within that folder. I know, SSHFS might be a bit slower, but it gets the job done. At present, I've got a bash script that accomplishes this using Rofi instead of SSHS. But, integrating this functionality into sshs would enhance its usability by consolidating both features within a single application.

quantumsheep commented 8 months ago

You should be able to use SSHFS directly with sshs using the --template argument:

sshs --template 'sshfs "{{{name}}}":/path/to/remote /path/to/local'