wiki:public:cygwin_sshd_publickey_failure
This is an old revision of the document!
SSH to a Windows host with Cygwin, public key auth fails but password works
When trying to SSH into a fresh install of Cygwin SSHD on a box I found that setting up public-key auth wasn't working for this host. I used the same install script that I do for all of my Cygwin SSHD hosts, so something was awry.
[jrdalrymple@localhost ~]$ ssh -v jrdalrymple@REMOTEHOST OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config <... snip ...> debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/jrdalrymple/.ssh/id_rsa Connection closed by REMOTEHOST [jrdalrymple@localhost ~]$ ssh -o PubkeyAuthentication=no jrdalrymple@REMOTEHOST jrdalrymple@REMOTEHOST's password: Last login: Sat Jun 6 19:28:20 2015 from localhost jrdalrymple@REMOTEHOST ~
The big difference here is that this host is a Windows Domain Controller, so it can't have local users. I suspect that's what has me hosed, although I never truly confirmed that.
wiki/public/cygwin_sshd_publickey_failure.1433649103.txt.gz · Last modified: 2018/09/27 02:30 (external edit)