This is the mail archive of the cygwin 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]
Other format: [Raw text]

OpenSSH_3.9p1 and Could not load host key


I just put in OpenSSH_3.9p1 I started to
get the following errors. I believe it
is a permission problem, but when NT
permissions are mixed with Unix permissions
I get confused.

Invoked from bash we get:

/usr/sbin/sshd -D -d -d -d
debug2: load_server_config: filename /etc/sshd_config
debug2: load_server_config: done config len = 205
debug2: parse_server_config: config /etc/sshd_config len 205
debug1: sshd version OpenSSH_3.9p1
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
/tmp $ ls -l /etc/ssh*key
-rw-------  1 SYSTEM SYSTEM 668 Jan  5 12:38 /etc/ssh_host_dsa_key
-rw-------  1 SYSTEM SYSTEM 525 Jan  5 12:38 /etc/ssh_host_key
-rw-------  1 SYSTEM SYSTEM 887 Jan  5 12:38 /etc/ssh_host_rsa_key
/tmp $ 

To see what the file realy has

C:\etc>cacls ssh*key
C:\etc\ssh_host_dsa_key NT AUTHORITY\SYSTEM:(special access:)
                                            STANDARD_RIGHTS_ALL
                                            DELETE
                                            READ_CONTROL
                                            WRITE_DAC
                                            WRITE_OWNER
                                            SYNCHRONIZE
                                            STANDARD_RIGHTS_REQUIRED
                                            FILE_GENERIC_READ
                                            FILE_GENERIC_WRITE
                                            FILE_READ_DATA
                                            FILE_WRITE_DATA
                                            FILE_APPEND_DATA
                                            FILE_READ_EA
                                            FILE_WRITE_EA
                                            FILE_READ_ATTRIBUTES
                                            FILE_WRITE_ATTRIBUTES

                        Everyone:(special access:)
                                 READ_CONTROL
                                 FILE_READ_EA
                                 FILE_READ_ATTRIBUTES


C:\etc\ssh_host_key NT AUTHORITY\SYSTEM:(special access:)
                                        STANDARD_RIGHTS_ALL
                                        DELETE
                                        READ_CONTROL
                                        WRITE_DAC
                                        WRITE_OWNER
                                        SYNCHRONIZE
                                        STANDARD_RIGHTS_REQUIRED
                                        FILE_GENERIC_READ
                                        FILE_GENERIC_WRITE
                                        FILE_READ_DATA
                                        FILE_WRITE_DATA
                                        FILE_APPEND_DATA
                                        FILE_READ_EA
                                        FILE_WRITE_EA
                                        FILE_READ_ATTRIBUTES
                                        FILE_WRITE_ATTRIBUTES

                    Everyone:(special access:)
                             READ_CONTROL
                             FILE_READ_EA
                             FILE_READ_ATTRIBUTES


C:\etc\ssh_host_rsa_key NT AUTHORITY\SYSTEM:(special access:)
                                            STANDARD_RIGHTS_ALL
                                            DELETE
                                            READ_CONTROL
                                            WRITE_DAC
                                            WRITE_OWNER
                                            SYNCHRONIZE
                                            STANDARD_RIGHTS_REQUIRED
                                            FILE_GENERIC_READ
                                            FILE_GENERIC_WRITE
                                            FILE_READ_DATA
                                            FILE_WRITE_DATA
                                            FILE_APPEND_DATA
                                            FILE_READ_EA
                                            FILE_WRITE_EA
                                            FILE_READ_ATTRIBUTES
                                            FILE_WRITE_ATTRIBUTES

                        Everyone:(special access:)
                                 READ_CONTROL
                                 FILE_READ_EA
                                 FILE_READ_ATTRIBUTES

what happened when you try to access ssh from a
openbsd 3.6 system, which worked until I updated
OpenSSH.

$ ssh whoops.thoughts.thinkage.ca
Last login: Mon Mar 28 11:15:25 2005 from mail.thinkage.ca
Fanfare!!!
You are successfully logged in to this server!!!
bash.exe: warning: could not find /tmp, please create!
-bash: /etc/profile: Permission denied
-bash: /pjf/.bash_profile: Permission denied
-bash-2.05b$ exit
logout
-bash: /pjf/.bash_logout: Permission denied
Connection to whoops.thoughts.thinkage.ca closed.
$ ssh -v
OpenSSH_3.9, OpenSSL 0.9.7d 17 Mar 2004
usage: ssh [-1246AaCfghkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]
           [-D port] [-e escape_char] [-F configfile] [-i identity_file]
           [-L port:host:hostport] [-l login_name] [-m mac_spec] [-o
option]
           [-p port] [-R port:host:hostport] [-S ctl] [user@]hostname
[command]


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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