Skip to content

Instantly share code, notes, and snippets.

@renkin
Created January 4, 2018 16:12
Show Gist options
  • Save renkin/951b89f2357795d3af28a05f304c94e4 to your computer and use it in GitHub Desktop.
Save renkin/951b89f2357795d3af28a05f304c94e4 to your computer and use it in GitHub Desktop.
KeePass URL Overrides for SSH Scheme using MobaXterm
cmd://"C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" -newtab "ssh {USERNAME}@{URL:RMVSCM}"
@jonathan409
Copy link

Hi everyone!

I'm trying to use keepass for starting a ssh session from KeePass to MobaXterm. But, as some of you have commented I canot enter password automatically.

I use this Override URL structure:

cmd://"c:\program files (x86)\mobatek\mobaxterm\mobaxterm.exe" -newtab "ssh {USER}@{S:IP}" in my entry and I get this:

root@192.168.8.1's password:

How can I enter password automatically?

I've tried some variants of Override URL structure, like

cmd://"c:\program files (x86)\mobatek\mobaxterm\mobaxterm.exe" -newtab "ssh root@{S:IP}" DELAY{100} {DELAY 1000}{PASSWORD}{ENTER}

But it's not possible.

Thank you for reading!

@jonathan409
Copy link

I think I just did it!

I used this structure:

cmd://"c:\program files (x86)\mobatek\mobaxterm\mobaxterm.exe" -newtab "sshpass -p '{PASSWORD}' ssh {USERNAME}@{S:IP}"

I don't really understand the structure, but I could login.

The only thing is that I recieved this message:

X11 forwarding request failed on channel 0

I hope someone can use this.

Thanks!

P.D.

I use information from Paul reading this discussion:

https://sourceforge.net/p/keepass/discussion/329220/thread/d9b7547c22/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment