Hacker News new | ask | show | jobs
by spindritf 4776 days ago
Is it really easier than just editing ~/.ssh/config? In the config, you can use wildcards for groups of servers

    Host *.whatever.net
       IdentityFile ~/.ssh/whatever-key
       ServerAliveInterval 10
       port 1022
and then add specific information and aliases per host

    Host someserver.whatever.net someserver ss
      Hostname someserver.whatever.net
      User spin

    Host otherserver.whatever.net otherserver os
      Hostname otherserver.whatever.net
      User dritf
Plus, since you probably edit it only once in a while, you don't need to remember the syntax and can simply base new additions on existing entries.
2 comments

It seems like one of those situations where it is better to just learn the tool you're using instead of learning a tool to configure the tool you're using.
It's probably not much easier, but the tool is almost certainly less error-prone. I like to see this extended with a GUI, but it's a good start.
I doubt it's less error-prone. SSH config files aren't particularly complicated, and if you get it wrong, it's easy enough to fix - just edit the file again.