KeePass

MobaXterm from regular keepass

"C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" -newtab "sshpass -p {PASSWORD} ssh -o StrictHostKeyChecking=no {USERNAME}@{URL:RMVSCM}"
@echo off

 SET input=%1
 FOR /f "tokens=1,2,3 delims=:" %%a IN ("%input%") do SET host=%%b&SET port=%%c

 SET host=%host:~2%
 echo %host%
 echo %port%

 cd C:\Program Files (x86)\Mobatek\MobaXterm
 MobaXterm.exe -newtab "telnet -r %host% %port%"

Registry to invoke putty for ssh urls

REGEDIT4
[HKEY_CLASSES_ROOT\ssh]
@="URL:Putty SSH Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\ssh\shell]
[HKEY_CLASSES_ROOT\ssh\shell\open]
[HKEY_CLASSES_ROOT\ssh\shell\open\command]
@="\"C:\\Program Files\\Mobatek\\MobaXterm\\MobaXterm.exe\" \"%1\""
[HKEY_CLASSES_ROOT\telnet] @="URL:Putty Telnet Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\telnet\shell]
[HKEY_CLASSES_ROOT\telnet\shell\open]
[HKEY_CLASSES_ROOT\telnet\shell\open\command]
@="\"C:\\Program Files\\Mobatek\\MobaXterm\\MobaXterm.exe\" \"%1\""
keepass.txt · Last modified: 2023-05-24 10:58 by ksadmin
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0