This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

"Invalid user" when logging into SSH


I'm trying to get SSH to work in Win2K with the latest cygwin
distribution.  I installed into c:\progra~1\cygwin.  I set up SSH with
password authentication, and I can't get it to work.  When I run sshd
-d, I get an "invalid user" message.  If anyone can help with this, I'd
*really* appreciate it!  Thanks.  I've included my ssh and sshd output,
and the contents of my sshd_config and passwd.

sshd:
-----------------------------
C:\PROGRA~1\cygwin>c:\progra~1\cygwin\usr\sbin\sshd -d -d -f
c:\progra~1\cygwin\
etc\sshd_config
debug1: Seeding random number generator
debug1: sshd version OpenSSH_2.5.2p2
debug1: load_private_key_autodetect: type 0 RSA1
debug1: read SSH2 private key done: name rsa w/o comment success 1
debug1: load_private_key_autodetect: type 1 RSA
debug1: read SSH2 private key done: name dsa w/o comment success 1
debug1: load_private_key_autodetect: type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 127.0.0.1 port 2039
debug1: Client protocol version 1.5; client software version
OpenSSH_2.5.2p2
debug1: match: OpenSSH_2.5.2p2 pat ^OpenSSH
debug1: Local version string SSH-1.99-OpenSSH_2.5.2p2
debug1: Rhosts Authentication disabled, originating port not trusted.
debug1: Sent 768 bit server key and 1024 bit host key.
debug1: Encryption type: 3des
debug1: Received session key; encryption turned on.
debug1: Installing crc compensation attack detector.
debug1: do_authentication: illegal user Administrator
debug1: Attempting authentication for illegal user Administrator.
Failed password for illegal user Administrator from 127.0.0.1 port 2039
Failed password for illegal user Administrator from 127.0.0.1 port 2039
Failed password for illegal user Administrator from 127.0.0.1 port 2039
Connection closed by 127.0.0.1
debug1: Calling cleanup 0x416324(0x0)
------------------------------

ssh:
------------------------------
$ ssh -v -lAdministrator localhost
OpenSSH_2.5.2p2, SSH protocols 1.5/2.0, OpenSSL 0x0090600f
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: ssh_connect: getuid 500 geteuid 500 anon 1
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Bad ownership or mode(0600) for '/etc/ssh_host_key'.
It is recommended that your private key files are NOT accessible by
others.
debug1: identity file /home/administrator/.ssh/identity type 0
debug1: identity file /home/administrator/.ssh/id_rsa type 1
debug1: identity file /home/administrator/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version
OpenSSH_2.5.2p2
debug1: match: OpenSSH_2.5.2p2 pat ^OpenSSH
debug1: Local version string SSH-1.5-OpenSSH_2.5.2p2
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug1: Forcing accepting of host key for loopback/localhost.
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Doing password authentication.
Administrator@localhost's password:
Permission denied, please try again.
Administrator@localhost's password:
Permission denied, please try again.
Administrator@localhost's password:
Permission denied.
debug1: Calling cleanup 0x41a304(0x0)
----------------------------------

sshd_config:
----------------------------------
Port 22
Protocol 2,1
ListenAddress 0.0.0.0
HostKey c:/progra~1/cygwin/etc/ssh_host_key
HostKey c:/progra~1/cygwin/etc/ssh_host_rsa_key
HostKey c:/progra~1/cygwin/etc/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin yes
IgnoreRhosts yes
StrictModes yes
X11Forwarding no
X11DisplayOffset 10
PrintMotd yes
KeepAlive yes
SyslogFacility AUTH
LogLevel INFO
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication no
PasswordAuthentication yes
PermitEmptyPasswords no
CheckMail no
UseLogin no
--------------------------------

passwd:
-------------------------------
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator::500:513:,S-1-5-21-1614895754-776561741-1801674531-500:/ho
me/administrator:/bin/sh
Guest:*:501:513:,S-1-5-21-1614895754-776561741-1801674531-501::
VUSR_DZIEGLER:*:1000:513:VSA Server
Account,S-1-5-21-1614895754-776561741-1801674531-1000::
-------------------------------

-David Ziegler
-dziegler@mit.edu


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]