QuickConnectPlugin icon indicating copy to clipboard operation
QuickConnectPlugin copied to clipboard

SSH, remote command sudo su - and Password

Open BurtGummer opened this issue 1 year ago • 1 comments

Hello,

I use a command in Keepass2 like this:

cmd://"C:\putty\putty.exe" -load "example.org" -ssh -P 22222 -pw {PASSWORD}

to connect directly from Keepass2 with one click. But after I login successfull, I have to enter:

sudo su -[ENTER] [SAME-PASSWORD-AGAIN][ENTER]

Can I do this with this plugin? I try the -m switch, but then putty close the connection after all commands enter.

BurtGummer avatar Aug 26 '24 05:08 BurtGummer

I am not familiar with the -m switch and is not supported by this plugin. The -load switch is supported via Additional Options in which you can specify the session name to load using session (e.g., session:example.org).

If that doesn't work for you, you might want to try the AdvancedConnectPlugin which offers more flexibility.

cristianst85 avatar Aug 26 '24 10:08 cristianst85