I know I can ssh directly into my servers in the terminal, but it’s a pain to manage that when I have several machines with different credentials and memorizing up addresses. Is there an easier way to do it via the terminal, or is there another software like putty on windows that could manage all of my connections for me?

  • I just use ssh keys and put aliases for IP addresses in my ~/.ssh/config. For example:

    Host router
        HostName 192.168.1.1
        User admin
        Port 227
        IdentityFile ~/.ssh/id_ed25519
    

    That way I can just type ssh router everything works out.

    • donio ( donio@beehaw.org ) 
      link
      fedilink
      arrow-up
      2
      ·
      3 years ago

      This is what I do as well. A nice benefit of this approach is that other commands and applications that use ssh work as well… scp, rsync, TRAMP in Emacs, management tools, shell scripts etc.