1.0.4 • Published 8 years ago

sshconfig2iterm v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

#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.

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago