first topic here, so apologies in advance, if I am doing something wrong! Searching with various terms did not yield in useful results, so I would like to ask for your help.
Is it possible to start a new SSH session from the Windows CMD CLI in MobaXTerm (preferably in a new tab) with session output logging?
The long story is that I am trying to offer URL overrides for the ssh:// scheme in KeePass for both PuTTY and MobaXTerm users.
With PuTTY, it can be achieved from the CLI with the -sessionlog
parameter (e.g. cmd://PuTTY.exe -ssh -sessionlog "%TEMP%\PuTTY_logs\{TITLE}_&Y-&M-&D-&T_putty.log" {USERNAME}@{BASE:RMVSCM} -pw {PASSWORD}
).
Starting the session in MobaXTerm in a new tab is also doable with e.g. cmd://MobaXterm.exe -newtab "sshpass -p {PASSWORD} ssh -o StrictHostKeyChecking=no {USERNAME}@{URL:RMVSCM}"
.
However in the MobaXTerm reference, I was not able to find any option to activate logging for the session from the CLI. Is this feasible at all?
Thanks in advance!