quantumsheep / sshs

Terminal user interface for SSH
MIT License
612 stars 17 forks source link

Add new option #51

Closed nodauf closed 1 year ago

nodauf commented 1 year ago

Add the option -a, --ssh-arguments to directly pass arguments to the ssh command. I personally use this option mostly for port forwarding or configuring a ssh proxy socks.

quantumsheep commented 1 year ago

Hey, thanks a lot for contributing!

Not sure if it works with multiple arguments, did you tried?

nodauf commented 1 year ago

Nice catch. Indeed, it was not working. Now it should. I have tried with multiple arguments

quantumsheep commented 1 year ago

It will not work if you have something like -a "--something 'a b c'". Use a library like shlex (it's archived but works well).

nodauf commented 1 year ago

Ok I will give it a look and do this properly.

nodauf commented 1 year ago

The last commit is now using shlex. The arguments are properly sent to ssh: image

quantumsheep commented 1 year ago

Fantastic ! Thanks ❤️