csshi icon indicating copy to clipboard operation
csshi copied to clipboard

Custom ssh command

Open lderugeriis opened this issue 2 years ago • 1 comments

Hi! I'd like to be possible to specify a custom ssh command or (maybe better) respect shell aliases. I have an alias for ssh to sshrc (a script useful to bring shell custom settings to remote servers without touching root bash profiles). But as I can see csshi just run ssh command + arguments without using the aliased command. For the moment I've just modified to ssh_string variable to use sshrc but it would be nice to have the option.

Thanks, Luca

lderugeriis avatar Aug 12 '22 13:08 lderugeriis

Hi Luca!

Shell aliases aren't going to work unfortunately - they're only available in interactive shells. I've added a '-b' option so you can specify the binary to be whatever you like (defaults to 'ssh'). Give it a try, it's on the main branch now.

ilikejam avatar Aug 12 '22 18:08 ilikejam

Hi! It works wonders. Thanks a lot!

lderugeriis avatar Nov 07 '22 16:11 lderugeriis

Awesome!

ilikejam avatar Nov 14 '22 10:11 ilikejam