file permission problem on Cygwin
From: Teruhiko Kurosaka (Kuro_at_basistech.com)
Date: 03/31/04
- Previous message: Darren Tucker: "Re: setting up ssh keys"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 30 Mar 2004 16:06:42 -0800 To: <secureshell@securityfocus.com>
Until a few hours ago, I could login to my remote machine without
entering password. I placed the public key in the remote machine's
.ssh/authorized_keys file and the private RSA key in the local machine's
.ssh/id_rsa. It was working well.
Today, I (accidentally) upgraded open_ssh to version 3.8p1 (time stamped
on 2/24/2004) from 3.7.1p2,and Cygwin to 1.5.9 (3/18/2004) from 1.5.5.
After this upgrade, ssh now complains that I have "too open" file
permissions on
.ssh/id_rsa and ignores this file:
-----------------------------------------------------------
$ ssh -V
OpenSSH_3.6.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
$ ssh -l my_login -X remote.host.name
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/my/home/.ssh/id_rsa' are too open.
It is recommended that your private key files are NOT accessible by
others.
This private key will be ignored.
bad permissions: ignore key: /my/home/.ssh/id_rsa
$ ls -ls .ssh/id_rsa
1 -rw-r--r-- 1 my_login my_group 887 Mar 30 14:39
.ssh/id_rsa
-----------------------------------------------------------
I tried "chmod 0600 .ssh/id_rsa" has no effect in Cygwin. It just
behaves
as though it changed the permissions, but nothing changes. I am
guessing
this is a normal behavior since the NT does not support the Unix-like
permission mechanism. If I do "umask 077", ls behaves as though only
the owner of this file (me) has access to it. But that didn't affect
the behavior of ssh. ssh still insists I set the permissions right.
What am I supposed to do ?
---- T. "Kuro" Kurosaka, San Francisco, California, US
- Previous message: Darren Tucker: "Re: setting up ssh keys"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|