ssh to UNIX server from Power-Shell, Visual Studia and/or cmd terminal does not work

Shekhar Mishra 0 Reputation points
2023-07-12T20:39:00.6966667+00:00

ssh to UNIX server from Power Shell does not work

PS C:> kinit -V ******@XXXX.GOV
Using default cache: Initial default ccache
Using principal: ******@XXXX.GOV
Password for ******@XXXX.GOV:
Authenticated to Kerberos v5
PS C:> ssh ******@YYYY.XXXX.gov
The authenticity of host 'YYYY.XXXX.gov ()' can't be established.
ED25519 key fingerprint is SHA256:adfasdfsdfwfw.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'YYYY.XXXX.gov' (ED25519) to the list of known hosts.
******@YYYY.XXXX.gov: Permission denied (gssapi-keyex,gssapi-with-mic).

Now I open a WSL and do the same and it works. ssh also work to the same UNIX server from the same window desktop using Putty.

The issue is related to window Power Shell and Window cmd only.

Windows for business Windows Server User experience PowerShell
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-09-08T04:28:08.71+00:00

    Hi,

    Please make sure the status of ssh-agent service is Running. Restart the service manually if it's already running. Run ssh-add to load your private key files into ssh-agent. Also check the version by running ssh -V in cmd or PowerShell and see if a new release from the below link works.

    https://github.com/PowerShell/Win32-OpenSSH/releases

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.