{"action":"opened","issue":{"url":"https://api.github.com/repos/billziss-gh/sshfs-win/issues/1","repository_url":"https://api.github.com/repos/billziss-gh/sshfs-win","labels_url":"https://api.github.com/repos/billziss-gh/sshfs-win/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/billziss-gh/sshfs-win/issues/1/comments","events_url":"https://api.github.com/repos/billziss-gh/sshfs-win/issues/1/events","html_url":"https://github.com/billziss-gh/sshfs-win/issues/1","id":168492345,"number":1,"title":"Password-less logins not working, even though they appear to connect successfully","user":{"login":"RoliSoft","id":119426,"avatar_url":"https://avatars.githubusercontent.com/u/119426?v=3","gravatar_id":"","url":"https://api.github.com/users/RoliSoft","html_url":"https://github.com/RoliSoft","followers_url":"https://api.github.com/users/RoliSoft/followers","following_url":"https://api.github.com/users/RoliSoft/following{/other_user}","gists_url":"https://api.github.com/users/RoliSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/RoliSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoliSoft/subscriptions","organizations_url":"https://api.github.com/users/RoliSoft/orgs","repos_url":"https://api.github.com/users/RoliSoft/repos","events_url":"https://api.github.com/users/RoliSoft/events{/privacy}","received_events_url":"https://api.github.com/users/RoliSoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-30T23:32:48Z","updated_at":"2016-07-30T23:32:48Z","closed_at":null,"body":"I use private keys instead of passwords to login to my servers. Checking the documentation I could find on `sshfs-win`, there seems to be no mention of supporting this, however, since I saw the standard `ssh.exe` and `sshfs.exe` are bundled, I fired up [Process Monitor](https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx) to see if at any time it tries to read the private keys.\r\n\r\nI found that it was trying to access `C:\\Program Files (x86)\\SSHFS-Win\\home\\SYSTEM\\.ssh\\id_rsa`, so I quickly created a `home\\SYSTEM` directory and copied the appropriate files from my Cygwin installation.\r\n\r\nAfter retrying, I found that it successfully read the private keys, so no privilege issues, however, shortly the Windows error message popped up, informing me that `Windows cannot access \\\\sshfs\\root@excelsior.rolisoft.net`.\r\n\r\nChecking the logs on my server confirms that it _was_ able to connect:\r\n\r\n    Jul 30 23:01:54 excelsior.rolisoft.net sshd[13532]: Accepted publickey for root from 2a02:2f07:d27c:600:bd86:1e62:fde5:9596 port 30453 ssh2: RSA SHA256:bCkuJouJFMZknUVoW8oCAI/WP/f3dTEaGSWOjCFjE2g\r\n    Jul 30 23:01:54 excelsior.rolisoft.net sshd[13532]: pam_unix(sshd:session): session opened for user root by (uid=0)\r\n\r\nRunning `ssh.exe root@excelsior.rolisoft.net` from `C:\\Program Files (x86)\\SSHFS-Win\\bin` as `nt authority\\system` also drops me into a shell, without any password prompts, so it _should_ work.\r\n\r\nGoing through the whole list of spawned processes during a connect does reveal at least one instance of `sshfs.exe` exiting with status code 1, however, I'm all out of ideas on how to debug this, as the SSH client has no option to log to a file as far as I know."}}
{"actor":{"display_login":"RoliSoft"}}