This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: can't change a file's permissions + some ssh
- From: Marilo <narium85-mlscar at yahoo dot co dot uk>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 10 Jun 2015 00:42:09 +0000 (UTC)
- Subject: Re: can't change a file's permissions + some ssh
- Authentication-results: sourceware.org; auth=none
- Reply-to: Marilo <narium85-mlscar at yahoo dot co dot uk>
>On Jun 7 17:46, Marilo wrote:
>> after some fiddling with ssh.. removing the service, removing keys, re-running ssh-host-config, I got this >error
>>
>> harvey@samsung350 ~
>> $ tail /var/log/sshd.log
>> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>> @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
>> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>> Permissions 0670 for '/etc/ssh_host_ed25519_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_ed25519_key
>> Could not load host key: /etc/ssh_host_ed25519_key
>> Disabling protocol version 2. Could not load host key
>> sshd: no hostkeys available -- exiting.
>>
>>
>> So I tried changing the file's permissions but I can't seem to change them
>>
>> harvey@samsung350 ~
>> $ ls -l /etc/ssh_host_ed25519_key
>> -rw-rwx---+ 1 cyg_server root 411 Jun 7 17:23 /etc/ssh_host_ed25519_key
>>
>> harvey@samsung350 ~
>> $ chmod 600 /etc/ssh_*
>>
>> harvey@samsung350 ~
>> $ ls -l /etc/ssh_host_ed25519_key
>> -rw-rwx---+ 1 cyg_server root 411 Jun 7 17:23 /etc/ssh_host_ed25519_key
>Note the extra permissions indicated by the trailing '+'. Try
>`setfacl -b /etc/ssh_host_ed25519_key'.
>Corinna
Thanks..
I reinstalled cygwin so as to update setfacl to include -b and then ran that command and then ssh works.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple