This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Putty and pre-shared keys with Cygwin's sshd

On 1/23/2012 11:38 AM, Corinna Vinschen wrote:
On Jan 23 11:01, Andrew DeFaria wrote:
On 1/23/2012 1:57 AM, Corinna Vinschen wrote:

Whereas all of the lines of my ~/.ssh/authorized_keys files are
single, loooong lines.
Maybe you *should* read the man pages.  The above is the private part of
the key.  authorized_keys is the file on the server side so it hold only
public keys.
You're right. I made a mistake. Corrected it:
No, you didn't.
OK I'll go with you. I didn't make a mistake! ;-)
Your mistake is not to read the man pages and apparently you still didn't.
I'm not saying that there isn't another mistake there somewhere. You said I used the private part of the key. You were right. I used the wrong part. So I changed it to the public part of the key. That's what I meant.

Ltsdo-adefaria:cat /tmp/sshkey_public
Comment: "dsa-key-20120121"

Added this to ~/.ssh/authorized_keys. Still fails - same way. Does
OpenSSH accept these multiline keys?
$ man sshd
Could you be a bit more vague! ;-)

Look, the public key that puttygen saves looks like the above. It's multilined. That's why I asked "Does OpenSSH accept these multiline keys". You could answer that question but instead you give me a cryptic reference. From what I read there no it doesn't accept such keys and I didn't think it did. Can you see my confusion here?!? Geeze! The man page is saying it's gotta be one line but puttygen is giving me multiple lines. Hence confusion so I asked a question which you could have simply answered directly rather than indirectly.

Yes there's also an area in the puttygen window where it says "copy and pastes this for OpenSSH". And I did, several times, and each time it failed. So I asked another question. I don't think I'm being unreasonable here.
I think the problem is that my home directory is on a file server
and that file server is not playing nice. By this I mean:

Ltsdo-adefaria:touch foo
Ltsdo-adefaria:ls -l foo
-rw-r--r-- 1 adefaria clearusers 0 Jan 23 10:59 foo
Ltsdo-adefaria:chmod 600 foo
Ltsdo-adefaria:ls -l foo
-rw-r--r-- 1 adefaria clearusers 0 Jan 23 10:59 foo
Ltsdo-adefaria:df .
Filesystem            1K-blocks   Used Available Use% Mounted on
//fs-irva-82/adefaria   5242880 343572   4899308   7% /home/adefaria
What does `mount' print for this mount point?
//fs-irva-82/adefaria on /home/adefaria type netapp (binary,posix=0,user)

My /etc/fstab entry is:

//fs-irva-82/adefaria /home/adefaria smb binary,posix=0,user 0 0

Ltsdo-adefaria:echo $CYGWIN
ntsec smbntsec winsymlinks nodosfilewarning
You also didn't read the User's Guide for a while...
What can I say, "old habits die hard". But I'm willing to change them - I just didn't know this changed... Thanks for the reference. I will change my /etc/fstab to be more correct. Not sure if I can get the mount point unbusy right now as I'm busy working but will do so when I can and report back. I think this will solve a lot of my problems though.

Managed to remount my home directory. Well that didn't work:

Ltsdo-adefaria:echo $CYGWIN
winsymlinks nodosfilewarning
Ltsdo-adefaria:grep adefaria /etc/fstab
//fs-irva-82/adefaria /home/adefaria smb binary,posix=0,user,acl 0 0
Ltsdo-adefaria:touch foo
Ltsdo-adefaria:ls -l foo
-rw-r--r-- 1 adefaria clearusers 0 Jan 23 12:21 foo
Ltsdo-adefaria:chmod 600 foo
Ltsdo-adefaria:ls -l foo
-rw-r--r-- 1 adefaria clearusers 0 Jan 23 12:21 foo
Ltsdo-adefaria:mount | grep defaria
//fs-irva-82/adefaria on /home/adefaria type netapp (binary,posix=0,user)


I've run across this before where the remote, often, samba server is
not handling permissions like a Windows SMB server would.
Samba can handle permissions if it's configured to do so.  But I saw
Samba being configured to behave like FAT a lot.
I think this explains my problems with sharing my Unix home directory with Cygwin for a while now.
Andrew DeFaria <>
"640K ought to be enough for anybody." - Bill Gates, 1981

-- Problem reports: FAQ: Documentation: Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]