Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SFTP support #84

Open
iliesh opened this issue Mar 13, 2024 · 3 comments
Open

Add SFTP support #84

iliesh opened this issue Mar 13, 2024 · 3 comments

Comments

@iliesh
Copy link

iliesh commented Mar 13, 2024

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
Copy link
Owner

How do you imagine the feature in sshs?

@iliesh
Copy link
Author

iliesh commented Mar 16, 2024

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
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants