ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved SSH-Copy-ID for accessing Linux Servers from Windows

    IT Discussion
    ssh windows linux certs
    2
    3
    7.5k
    Loading More Posts
    • 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.
    • DustinB3403D
      DustinB3403
      last edited by

      Okay, so I know how to do this from linux to linux, and I can view the public cert and manually copy that into my Windows Authorized keys, but that seems like a hoaky way to go about this.

      How can I setup cert access to my linux servers from my Windows workstation so I don't need to use passwords?

      1 Reply Last reply Reply Quote 1
      • DustinB3403D
        DustinB3403
        last edited by DustinB3403

        Okay so figured it out with this guide.

        From Windows administrative Powershell

        ssh-keygen
        type C:\Users\<username>\.ssh\id_rsa.pub | ssh user@linuxserver 'cat >> .ssh/authorized_keys'

        Exit administrative Powershell

        Open Powershell

        ssh user@linuxserver

        Logged in.

        1 Reply Last reply Reply Quote 3
        • donaldlandruD
          donaldlandru
          last edited by

          I use Git Bash on Windows as my jumping off point. This has the ssh-copy-id, as well as most other tools, available.

          If all of your keys are already on your servers, you can use something like PuTTy or MobaXterm (still PuTTy) to connect using your private key.

          1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403
            last edited by DustinB3403

            Okay so figured it out with this guide.

            From Windows administrative Powershell

            ssh-keygen
            type C:\Users\<username>\.ssh\id_rsa.pub | ssh user@linuxserver 'cat >> .ssh/authorized_keys'

            Exit administrative Powershell

            Open Powershell

            ssh user@linuxserver

            Logged in.

            1 Reply Last reply Reply Quote 3
            • 1 / 1
            • First post
              Last post