bmatzelle / gow

Unix command line utilities installer for Windows.
https://github.com/bmatzelle/gow/wiki
6.55k stars 363 forks source link

How do I get ssh to use %USERPROFILE%/.ssh authenication keys #245

Open godzilla opened 6 years ago

godzilla commented 6 years ago

From other comments I set HOME=%USERPROFILE% When I do

ssh user@example.com

from another ssh utility (git's ssh.exe), it works but when I use gow's ssh.bat I get FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey) Is there a way to get ssh.bat to use my ssh keys?

BrBill commented 1 year ago

Answering a 5-year-old question, but I put C:\Windows\System32\OpenSSH in my path before any other ssh can be found, and that solves the issue. It's still old (v1.1.1) but it works.