sshconfig2iterm
v1.0.4
Published
Convert SSH Config Files to iTerm 2 Profiles
Downloads
9
Maintainers
Readme
#sshconfig2iterm
This will convert ssh config files (located at ~/.ssh/config) to iTerm2 Dynamic Profiles.
Because this is for iTerm, this will only work on Mac.
To install, run:
npm i -g sshconfig2iterm # Install it
sshconfig2iterm # Generated and print out a iTerm2 dynamic profile from the file found at ~/.ssh/config
sshconfig2iterm --save # to save the profile to ~/Library/Application Support/iTerm2/DynamicProfiles/profiles.json
Example Config Mapping
~/.ssh/config
Host sample # Example Server
#Tags server, example
User testuser
HostName example.com
Will convert to:
#####profile.json
{
"Profiles": [
{
"Guid": "sample",
"Name": "Example Server",
"ShortCut": "",
"Custom Command": "Yes",
"Command": "ssh sample",
"Tags": [
"server",
"example"
]
}
]
}
The Name is first taken from the '#Label' paramter. If this isn't found it'll grab it from the Comment on the same line of the host. It falls back to the Host parameter.