SSH, remote command sudo su - and Password
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.
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.