I don't know the password to my ssh server with powershell

stuckinpowershell 0 Reputation points
2023-01-25T10:03:11.86+00:00

Hello, I'm currently trying to OpenSSH by following this information: [https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=powershell

I am stuck at the Connect to OpenSSH Server

When I put in my "ssh domain\username@servername" (yes i put in my actual data)

it suddenly asks for a password I do not remember setting up a password. so I can not connect.

Anyone can help in this situation?

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 123.7K Reputation points MVP Volunteer Moderator
    2023-01-25T10:13:16.6133333+00:00

    Hi @stuckinpowershell ,

    which user account is used as the username ? This user exists on the OpenSSH server? If so you should try the password of this user.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    0 comments No comments

  2. Limitless Technology 44,766 Reputation points
    2023-01-25T16:40:32.4466667+00:00

    Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.

    Depending on the operating system you use, you may be able to retrieve your SSH key passphrase or you may need to create a new SSH key passphrase if you've lost it.

    There is no way to get your SSH key passphrase back if you lose it. A fresh SSH keypair must be created, or you must switch to HTTPS cloning in order to use a personal access token.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.