Skip to content

Can't connect to my pc via ssh #2229

Closed Answered by tgauth
matthieuEv asked this question in Q&A
Discussion options

You must be logged in to vote

I didn't see that you had already changed the key values, so I removed them from the post.

If you are trying to connect as an account that is an administrator, the public key should be added to $env:PROGRAMDATA\\administrators_authorized_keys instead of $env:USERPROFILE\\.ssh\\authorized_keys

Also - no need to change the ssh command, but when connecting to the local machine, ssh will also recognize localhost in addition to the ip address.

If that doesn't work, please provide the ssh client/server logs as described in https://github.com/PowerShell/Win32-OpenSSH/wiki/Troubleshooting-Steps

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matthieuEv
Comment options

Answer selected by matthieuEv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants