ssh-Host-configが機能していません。sshdをサービスとして作成するときにこのエラーが発生します。 cygwinがインストールされたWindows732ビットを実行しています。
Cygwinをインストールした後、最初は機能していました。 ssh-Host-configを数回実行しました。 sshとsshdの設定を必ず変更したかったので、アンインストールしました。エラーがあったかどうか思い出せません。アンインストールして再インストールするときに これら の手順を使用しました。
this サイトの指示に従いましたが、これらのディレクトリのアクセス許可を変更すると、システムが台無しになったのではないかと思われます。どこかで、どこを思い出せないのか、所有権についてのエラー/警告メッセージを見て、それが物事を台無しにするだろうと。多分それは私が知らない良いチュートリアルです。
エラーは次のとおりです。
/usr/bin/cygrunsrv: Error installing a service: CreateService: Win32 error 1057
Ssh-Host-configは次のとおりです。
~
$ ssh-Host-config -y
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file
*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
*** Info: However, this requires a non-privileged account called 'sshd'.
*** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep.
*** Query: Should privilege separation be used? (yes/no) yes
*** Warning: sshd is in /etc/passwd, but the
*** Warning: local machine's SAM does not know about sshd.
*** Warning: Perhaps sshd is a pre-existing domain account.
*** Warning: Continuing, but check if this is ok.
*** Info: Updating /etc/sshd_config file
*** Query: Overwrite existing /etc/inetd.d/sshd-inetd file? (yes/no) yes
*** Info: Creating default /etc/inetd.d/sshd-inetd file
*** Info: Updated /etc/inetd.d/sshd-inetd
*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: []
*** Info: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires. You need to have or to create a privileged
*** Info: account. This script will help you do so.
*** Warning: cyg_server is in /etc/passwd, but the local
*** Warning: machine's SAM does not know about cyg_server.
*** Warning: Perhaps cyg_server is a pre-existing domain account.
*** Warning: Continuing, but check if this is ok.
*** Info: You appear to be running Windows XP 64bit, Windows 2003 Server,
*** Info: or later. On these systems, it's not possible to use the LocalSystem
*** Info: account for services that can change the user id without an
*** Info: explicit password (such as passwordless logins [e.g. public key
*** Info: authentication] via sshd).
*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless a similar account
*** Info: already exists). This account is then used to run these special
*** Info: servers.
*** Info: Note that creating a new user requires that the current account
*** Info: have Administrator privileges itself.
*** Info: The following privileged accounts were found: 'cyg_server' .
*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Please enter the password for user 'cyg_server':
*** Query: Reenter:
*** Query: Please enter the password for user 'cyg_server':
*** Query: Reenter:
/usr/bin/cygrunsrv: Error installing a service: CreateService: Win32 error 1057:
The account name is invalid or does not exist, or the password is invalid for the account name specified.
*** ERROR: Installing sshd as a service failed!
*** Warning: Host configuration exited with 1 errors or warnings!
*** Warning: Make sure that all problems reported are fixed,
*** Warning: then re-run ssh-Host-config.
役に立たないopensshとcygrunsrvを再インストールしようとしましたが、それでもエラーが発生します。
Ssh、sshd、cygrunsrvのすべての設定ファイルを削除するにはどうすればよいですか?どうすればsshにsshdをサービスとしてインストールさせることができますか?何か案は?ありがとうクリスチャン
this スレッドの回答の指示に従いました。
抜粋:
For Windows XP.
To remove Cygwin sshd in the cleanest possible way:
Disclaimer
cygrunsrv -E sshd
cygrunsrv -R sshd
delete the folder c:\cygwin and all its sub-folders
remove the Environment Variable CYGWIN
edit the Environment path accordingly
Start...Run... regedit and delete these two registry trees
"HKEY_CURRENT_USER_Software_Cygnus Solutions"
"HKEY_LOCAL_MACHINE_Software_Cygnus Solutions"
Go to Control Panel, Category View, Performance and Maintenance, Administrative Tools, Computer Management.
or click Start...Run...compmgmt.msc
delete the sshd user if it exists in the "System Tools" - "Local Users and Groups" - "Users" section.
EDIT: These steps were originally for XP, and you may need to re-install cygwin afterwards.
きれいにしたre-install
of cygwin
そして今、それは機能しています。