Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. To my #SSH folks:

To my #SSH folks:

Scheduled Pinned Locked Moved Uncategorized
ssh
7 Posts 6 Posters 3 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gumnos@mastodon.bsd.cafeG This user is from outside of this forum
    gumnos@mastodon.bsd.cafeG This user is from outside of this forum
    gumnos@mastodon.bsd.cafe
    wrote last edited by
    #1

    To my #SSH folks:

    Is there some documented process of moving SSH from one machine to another transparently?

    I get that I can copy the server-keys from $OLDSERVER to $NEWSERVER, but my understanding is that SSH will still notice the IP address (they connect via name, and DNS will point to the new IP address) changing and still raise alarms.

    Short of also migrating the IP address too (not an option here since they're owned by different orgs), is there a least-painful route?

    The current/painful option is just "sorry, suckas, IP changed, host-key & its fingerprints changed, and all your automated SFTP tasks break until you accept the new host key" which I'm trying to avoid ☺

    Thanks for any recommendations!

    mwl@io.mwl.ioM a@852360996.91268476.xyzA narthur@hachyderm.ioN pertho@mastodon.bsd.cafeP viq@social.hackerspace.plV 5 Replies Last reply
    1
    0
    • gumnos@mastodon.bsd.cafeG gumnos@mastodon.bsd.cafe

      To my #SSH folks:

      Is there some documented process of moving SSH from one machine to another transparently?

      I get that I can copy the server-keys from $OLDSERVER to $NEWSERVER, but my understanding is that SSH will still notice the IP address (they connect via name, and DNS will point to the new IP address) changing and still raise alarms.

      Short of also migrating the IP address too (not an option here since they're owned by different orgs), is there a least-painful route?

      The current/painful option is just "sorry, suckas, IP changed, host-key & its fingerprints changed, and all your automated SFTP tasks break until you accept the new host key" which I'm trying to avoid ☺

      Thanks for any recommendations!

      mwl@io.mwl.ioM This user is from outside of this forum
      mwl@io.mwl.ioM This user is from outside of this forum
      mwl@io.mwl.io
      wrote last edited by
      #2

      @gumnos host keys in dns. Or certificates.

      gumnos@mastodon.bsd.cafeG 1 Reply Last reply
      0
      • gumnos@mastodon.bsd.cafeG gumnos@mastodon.bsd.cafe

        To my #SSH folks:

        Is there some documented process of moving SSH from one machine to another transparently?

        I get that I can copy the server-keys from $OLDSERVER to $NEWSERVER, but my understanding is that SSH will still notice the IP address (they connect via name, and DNS will point to the new IP address) changing and still raise alarms.

        Short of also migrating the IP address too (not an option here since they're owned by different orgs), is there a least-painful route?

        The current/painful option is just "sorry, suckas, IP changed, host-key & its fingerprints changed, and all your automated SFTP tasks break until you accept the new host key" which I'm trying to avoid ☺

        Thanks for any recommendations!

        a@852360996.91268476.xyzA This user is from outside of this forum
        a@852360996.91268476.xyzA This user is from outside of this forum
        a@852360996.91268476.xyz
        wrote last edited by
        #3

        @gumnos i would be surprised if that is possible, it would lead to risks

        1 Reply Last reply
        0
        • gumnos@mastodon.bsd.cafeG gumnos@mastodon.bsd.cafe

          To my #SSH folks:

          Is there some documented process of moving SSH from one machine to another transparently?

          I get that I can copy the server-keys from $OLDSERVER to $NEWSERVER, but my understanding is that SSH will still notice the IP address (they connect via name, and DNS will point to the new IP address) changing and still raise alarms.

          Short of also migrating the IP address too (not an option here since they're owned by different orgs), is there a least-painful route?

          The current/painful option is just "sorry, suckas, IP changed, host-key & its fingerprints changed, and all your automated SFTP tasks break until you accept the new host key" which I'm trying to avoid ☺

          Thanks for any recommendations!

          narthur@hachyderm.ioN This user is from outside of this forum
          narthur@hachyderm.ioN This user is from outside of this forum
          narthur@hachyderm.io
          wrote last edited by
          #4

          @gumnos tell clients to pre-stage the known-hosts change? Just an idea.

          1 Reply Last reply
          0
          • gumnos@mastodon.bsd.cafeG gumnos@mastodon.bsd.cafe

            To my #SSH folks:

            Is there some documented process of moving SSH from one machine to another transparently?

            I get that I can copy the server-keys from $OLDSERVER to $NEWSERVER, but my understanding is that SSH will still notice the IP address (they connect via name, and DNS will point to the new IP address) changing and still raise alarms.

            Short of also migrating the IP address too (not an option here since they're owned by different orgs), is there a least-painful route?

            The current/painful option is just "sorry, suckas, IP changed, host-key & its fingerprints changed, and all your automated SFTP tasks break until you accept the new host key" which I'm trying to avoid ☺

            Thanks for any recommendations!

            pertho@mastodon.bsd.cafeP This user is from outside of this forum
            pertho@mastodon.bsd.cafeP This user is from outside of this forum
            pertho@mastodon.bsd.cafe
            wrote last edited by
            #5

            @gumnos ssh certificates for the win. Just sign all your hosts ssh keys with it and you can have a single line in known_hosts to validate it. So even if you reinstall, so long as you sign the ssh server keys with that one key it all works.

            You can also do the same for user ssh keys.

            I've been using this system for about 2 years on my servers and it's great. I store the private key in a safe place of course.

            1 Reply Last reply
            0
            • gumnos@mastodon.bsd.cafeG gumnos@mastodon.bsd.cafe

              To my #SSH folks:

              Is there some documented process of moving SSH from one machine to another transparently?

              I get that I can copy the server-keys from $OLDSERVER to $NEWSERVER, but my understanding is that SSH will still notice the IP address (they connect via name, and DNS will point to the new IP address) changing and still raise alarms.

              Short of also migrating the IP address too (not an option here since they're owned by different orgs), is there a least-painful route?

              The current/painful option is just "sorry, suckas, IP changed, host-key & its fingerprints changed, and all your automated SFTP tasks break until you accept the new host key" which I'm trying to avoid ☺

              Thanks for any recommendations!

              viq@social.hackerspace.plV This user is from outside of this forum
              viq@social.hackerspace.plV This user is from outside of this forum
              viq@social.hackerspace.pl
              wrote last edited by
              #6

              @gumnos @pertho from my experience "same DNS name and same key" will not generate complaints on an IP change, or at most will emit "hey, other things match, so I updated IP on record"

              1 Reply Last reply
              0
              • mwl@io.mwl.ioM mwl@io.mwl.io

                @gumnos host keys in dns. Or certificates.

                gumnos@mastodon.bsd.cafeG This user is from outside of this forum
                gumnos@mastodon.bsd.cafeG This user is from outside of this forum
                gumnos@mastodon.bsd.cafe
                wrote last edited by
                #7

                @mwl

                /me turns to p151

                Wonderful…I knew I'd read something relevant but didn't remember the right terms to search for it in the SSH Mastery PDF. Thanks!

                1 Reply Last reply
                0
                • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe shared this topic
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups