Cygwin なんでも掲示板

一覧最新記事過去一覧 | 検索FAQアンテナHOME
(新規投稿・発言はできません)


スレッド

└◇701:
CYGWIN sshdの起動でエラーが出ます [Yuuka] 11/07 13:21

 └◇702:Re:CYGWIN sshdの起動でエラーが出ます [Yuuka] 11/08 <


701● CYGWIN sshdの起動でエラーが出ます[ Yuuka ] 2002 11/07 13:21
よろしくお願い致します。以前にWin2kにcygwinをインストールしていたのですがそのフォルダに

http://sources.redhat.com/cygwin/

から新たにsetup.exeをダウンロードしてクリックしてインストールしました。
C:\cygwin\bin\cygwin1.dll右クリックのバージョンは1003.12.0.0になっています。


$ ssh-host-config
Generating /etc/ssh_host_key
Generating /etc/ssh_host_rsa_key
Generating /etc/ssh_host_dsa_key
Generating /etc/ssh_config file
Generating /etc/sshd_config file
Added ssh to /cygdrive/c/WINNT/system32/drivers/etc/services
Added ssh to /etc/inetd.conf

Do you want to install sshd as service?
(Say "no" if it's already installed as service) (yes/no) yes

Which value should the environment variable CYGWIN have when
sshd starts? It's recommended to set at least "ntsec" to be
able to change user context without password.
Default is "binmode ntsec tty". CYGWIN=ntsec

The service has been installed under LocalSystem account.

Host configuration finished. Have fun!


~]$ssh-user-config
Shall I create an SSH1 RSA identity file for you? (yes/no) yes
Generating /home/Administrator/.ssh/identity
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Do you want to use this identity to login to this machine? (yes/no) yes
Adding to /home/Administrator/.ssh/authorized_keys
Shall I create an SSH2 RSA identity file for you? (yes/no) (yes/no) yes
Generating /home/Administrator/.ssh/id_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Do you want to use this identity to login to this machine? (yes/no) yes
Adding to /home/Administrator/.ssh/authorized_keys2
Shall I create an SSH2 DSA identity file for you? (yes/no) (yes/no) yes
Generating /home/Administrator/.ssh/id_dsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Do you want to use this identity to login to this machine? (yes/no) yes
Adding to /home/Administrator/.ssh/authorized_keys2

Configuration finished. Have fun!

するとサービスに「CYGWIN sshd」というのが出来ました。

それを右クリックして開始したのですが

「ローカルコンピュータのCYGWIN sshdサービスを開始できません。サービスはエ
ラーを返しませんでした。Windowsの内部エラーはたはサービスの内部エラーであっ
た可能性があります。」

となってしまいます。これは一体何が原因なのでしょうか?

Win2kをリブートしてもダメでした。
スレッド一覧


702● Re:CYGWIN sshdの起動でエラーが出ます[ Yuuka ] 2002 11/08 00:23
/etc/ssh_host_key
/etc/ssh_host_key.pub
/etc/ssh_host_rsa_key
/etc/ssh_host_rsa_key.pub
/etc/ssh_config
/etc/ssh_host_dsa_key
/etc/ssh_host_dsa_key_pub
/etc/sshd_config

を削除して

$ ssh-host-config
Generating /etc/ssh_host_key
Generating /etc/ssh_host_rsa_key
Generating /etc/ssh_host_dsa_key
Generating /etc/ssh_config file
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called 'sshd'.
For more info on privilege separation read /usr/doc/openssh/README.privsep.

Shall privilege separation be used? (yes/no) no
Generating /etc/sshd_config file

Do you want to install sshd as service?
(Say "no" if it's already installed as service) (yes/no) yes

Which value should the environment variable CYGWIN have when
sshd starts? It's recommended to set at least "ntsec" to be
able to change user context without password.
Default is "binmode ntsec tty". CYGWIN=ntsec
cygrunsrv: Error installing a service: OpenService: Win32 error 1073:
指定されたサービスは既に開始されています。
Host configuration finished. Have fun!

$ ssh-user-config

Configuration finished. Have fun!

となり、サービスを見てみるとCYGWIN sshdが起動してました。
スレッド一覧

早田のホームページへ
CGIROOM