2012-11-23 3 views
4

Windows에서 sshd를 설치하려면 cygwin을 사용하고 싶습니다.cygwin을 사용하여 sshd 설치

The CYGWIN sshd service is starting. 
The CYGWIN sshd service could not be started. 
The service did not report an error. 
More help is available by typing NET HELPMSG 3534. 

을 그리고 sshd.log는 말한다 : 나는 SSHD 서비스를 시작할 때, 그것은 말한다

Permissions 0660 for '/etc/ssh_host_dsa_key' are too open. 
It is required that your private key files are NOT accessible by others. 
This private key will be ignored. 
bad permissions: ignore key: /etc/ssh_host_dsa_key 
Could not load host key: /etc/ssh_host_dsa_key 

그래서 어떻게 다루는?

답변

3

cyg_server 사용자 만 해당 키에 액세스 할 수 있는지 확인해야합니다.

chown cyg_server /etc/ssh* 
chmod 600 /etc/ssh* 

이러한 명령은 올바르게 작동하므로 sshd를 올바르게 실행할 수 있습니다. 내가이보고

Disabling protocol version 2. Could not load host key 
sshd: no hostkeys available -- exiting. 
/var/empty must be owned by root and not group or world-writable. 
/var/empty must be owned by root and not group or world-writable. 
/var/empty must be owned by root and not group or world-writable. 
/var/empty must be owned by root and not group or world-writable. 

은/var에 보면 :

+0

sshd.log 파일 ('cat/var/log/sshd.log'는 공백을 반환합니다. 내'ls'도 공백으로 반환합니다)에 액세스하는 방법을 모르겠지만 명시한 두 명령을 적용한 후 연결 할 수 없음. 어떤 생각? –

+0

Ok'print/var/log/sshd.log'하면 다음을 반환합니다 :'장치 PRN을 초기화 할 수 없습니다 '. –

+0

바라건대 다른 누군가가 도움이 될 수 있기를 바랍니다 ... 실제로이 작업을하려면 많은 노력이 필요하며 W7을 한 번만 설치하면됩니다. 이것을 설정하기위한 지침을 따르고 있습니까? – dantheman

3

내 /var/log/sshd.log는 결국이 있었다

$ ls /var -All 
total 0 
drwxrwxr-x+ 1 xxxx  None 0 Dec 8 15:59 cache 
drwxrwxr-x+ 1 cyg_server root 0 Dec 8 16:21 empty 
drwxrwxr-x+ 1 xxxx  None 0 Dec 8 15:58 lib 
drwxrwxrwx+ 1 xxxx  None 0 Dec 8 16:27 log 
drwxrwxrwx+ 1 xxxx  None 0 Dec 8 15:48 run 
drwxrwxrwt+ 1 xxxx  None 0 Dec 8 15:48 tmp 
그래서

난 그냥 chmod 600 /var/empty했다을하고 그것을 고정 !

관련 문제