• ɐɥOOP
    link
    fedilink
    18 months ago

    Then any time you run ssh myserver.net, it’ll use the user you specify here by default.

    Wouldnt really help in my use case bc I use the same user on every server

    • @[email protected]
      link
      fedilink
      English
      88 months ago

      It was just an example. What does your script do that wouldn’t be configurable in ssh config

      • ɐɥOOP
        link
        fedilink
        1
        edit-2
        8 months ago

        not much, probably. Ill add some features in the future tho

    • @__init__
      link
      28 months ago

      The “host” is just your friendly name for the connection, not necessarily the hostname of the remote host. You can specify the same username or hostname as many times as you want. My config is made up of mostly blocks like this:

      Host server1
          HostName server1.you.com
          User your_ssh_username
          IdentityFile ~/.ssh/yourprivatekey.pem
        
      Host server2
          HostName server2.you.com
          User your_ssh_username
          IdentityFile ~/.ssh/yourprivatekey.pem