This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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: Sun, 7 Jun 2015 17:46:53 +0000 (UTC)
- Subject: 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>
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
harvey@samsung350 ~
$
I can run
$ echo asdf>c:\fffdfs So I do have administrative permissions.
--
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