MSYS build - stage 2 problem
Simon Peyton-Jones
simonpj at microsoft.com
Fri Feb 27 14:10:44 EST 2004
Turns out Simon was right. In earlier fiddling I'd turned off all
permissions on my identity file.
SO here's what happens now. ssh complains that the identity file isn't
read-protected. and indeed ls -l says
$ ls -l identity
-rw-r--r-- 1 simonpj Administ 541 Feb 27 13:56 identity
But chmod is a no-op! Altering the permissions using Windows, so that
only I have any permissions at all, and then only for reading, changes
nothing -- that is, msys 'ls' stubbornly goes on insisting that identity
is readable by others. So ssh doesn't work as it should.
How can I change the permissions so that ls/ssh see it as
non-world-readable?
Simon
$ ssh -v -i identity cvs.haskell.org
OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /z/.ssh/config
debug1: Seeding random number generator
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 500 geteuid 500 anon 1
debug1: Connecting to cvs.haskell.org [129.95.44.145] port 22.
debug1: temporarily_use_uid: 500/544 (e=500)
debug1: restore_uid
debug1: temporarily_use_uid: 500/544 (e=500)
debug1: restore_uid
debug1: Connection established.
debug1: identity file identity type 0
debug1: Remote protocol version 1.99, remote software version
OpenSSH_2.2.0p1
debug1: match: OpenSSH_2.2.0p1 pat ^OpenSSH[-_]2\.[012]
debug1: Local version string SSH-1.5-OpenSSH_2.9p2
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug1: Host 'cvs.haskell.org' is known and matches the RSA1 host key.
debug1: Found key in /z/.ssh/known_hosts:1
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Trying RSA authentication with key 'administrator at MSRC-SIMONPJ'
debug1: Received RSA challenge from server.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Bad ownership or mode(0644) for 'identity'.
It is recommended that your private key files are NOT accessible by
others.
This private key will be ignored.
bad permissions: ignore key: identity
Enter passphrase for RSA key 'administrator at MSRC-SIMONPJ':
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Bad ownership or mode(0644) for 'identity'.
It is recommended that your private key files are NOT accessible by
others.
This private key will be ignored.
bad permissions: ignore key: identity
Bad passphrase.
debug1: Remote: Wrong response to RSA authentication challenge.
debug1: Doing password authentication.
simonpj at cvs.haskell.org's password:
Permission denied, please try again.
simonpj at cvs.haskell.org's password:
Permission denied, please try again.
simonpj at cvs.haskell.org's password:
Permission denied.
debug1: Calling cleanup 0x41bcc4(0x0)
More information about the Cvs-ghc
mailing list