Skip to content

gplv2/mobaxterm2ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This tool will convert your mobaxterm.ini to a .ssh/config file

It will take a backup to your current workdir and preserve existing entries

See the work done here to understand the ini format:

Sources to decode this : https://gist.github.com/Ruzgfpegk/ab597838e4abbe8de30d7224afd062ea

This work enabled me to quickly write a CLI tool to help me convert. I'm not a node/js specialist, I just think it's a fun language to play with.

That also means that sometimes I go nuts trying to select the proper const/var/let assignment, the code just works for me atm.

the example ini file included is obfuscated and cleaned up of any internal info that would not be nice to be leaked.

usage

Usage: node mobaconv.js [options]

Options:
  --datadir <dir>               The place where one or more of your mobaterm ini files are, defaults to ./data/
  --sshconfigfile <file>        The source ssh client config file, if omited defaults to the .ssh/config relative to userhome
  --outputfile <file>           The target ssh config file, defaults to sshconfigfile if omited
  --replaceuser <old/new> Replace a username with another one everywhere (proxy and ssh user)
  --help                        Show help information

About

CLI tool to create a ssh client config file with ssh entries coming from mobaxterm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published