I have 4 servers. 3 on oracle cloud, and 1 on google. So i decided to setup guackamole with docker on one. I did everything, i added my private key, and tried to connect. But i got an error, and the same when i tried to connect from powershell (server sent public key). The key worked before. I tried to connect to the same server where guacamole is running from. I tought that oracle maybe regenerated the key, so i deleted the existing one, and regenerate it, but that failed too. But putty still works, i can still connect with it. Then i tried to use putty to regenerate the original key files, and that failed too. Then i cheked if the key on the server are still mached to the one i regenerated with putty, and they are the same. But i still can’t connect. How can i fix this? I really don’t know what went wrong.

  • Badabinski
    link
    fedilink
    17
    edit-2
    2 years ago

    Just to be sure — you uploaded the public key to your servers, right? In your user’s directory on the remote server at ~/.ssh/authorized_keys. Your private key should never leave your system. That’s a very common mistake in my experience. The wording of your post makes it seem like you may have done that.

    • TiborOP
      link
      fedilink
      12 years ago

      Maybe i did that. I check tomorrow cus im really tired.

      • @ilovepudding
        link
        112 years ago

        If you uploaded your private key you need to remove that and generate a new key pair anywhere the old keypair was used. That old keypair is now compromised and should never be used again anywhere. IMO you should do that now not tomorrow.

  • @[email protected]
    link
    fedilink
    52 years ago

    i added my private key

    You are supposed to copy your public to the server, not the private one.

  • @fubo
    link
    42 years ago

    If you can still log into the server in question, take a look in the logs and see if there are authentication failures?

  • @[email protected]
    link
    fedilink
    32 years ago

    Let me make sure I understand first

    1. You are attempting to passwordlessly SSH from Window to a group of servers using Powershell
    2. Something stopped working and you regenerated your Windows SSH keys

    i added my private key, and tried to connect

    This concerns me, as the server should have the user’s public key, not private. Private should be exactly that, private

    Is the Powershell user / SSH key the same as the Putty user / SSH key that still works?

    When you run the Powershell script, does it give any error messages?

    I know with Linux -> Linux SSH you can log verbosely with -v, is that something you can do under Powershell?

    Is password auth enabled? Does that still work from Putty, and can you do the same from Powershell?

  • @root
    link
    12 years ago

    As others mentioned, should be pub key being uploaded. I actually set up an Ansible playbook to do this for me, because it felt tedious. Highly recommend.