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

2012-01-25 Thread Andrew DeFaria
On 01/24/2012 10:17 PM, Christopher Faylor wrote: Sorry that I was unclear. What I meant is that your negative assessment of Corinna's character, whether online or in real life, is totally off base and off-topic. Please exercise the self restraint necessary to let this drop. I'm so sorry. I had

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

2012-01-24 Thread Christopher Faylor
On Tue, Jan 24, 2012 at 06:51:10PM -0800, Andrew DeFaria wrote: >On 1/24/2012 5:18 PM, Christopher Faylor wrote: >> On Tue, Jan 24, 2012 at 11:26:50AM -0800, Andrew DeFaria wrote: >>> That would be true if Corinna's entire life is only on this forum. I >>> suspect she might have a little bit more o

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

2012-01-24 Thread Andrew DeFaria
On 1/24/2012 5:18 PM, Christopher Faylor wrote: On Tue, Jan 24, 2012 at 11:26:50AM -0800, Andrew DeFaria wrote: That would be true if Corinna's entire life is only on this forum. I suspect she might have a little bit more of a life outside of this forum and outside of computers. Maybe I'm wrong.

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

2012-01-24 Thread Andrew DeFaria
On 1/24/2012 4:59 PM, Andrey Repin wrote: Greetings, Andrew DeFaria! Would it kill you to be nice and say something like "No it has to be one line. You must be using the wrong key"??? Let me rephrase: Csaba - I wasn't talking to you! Then send your messages privately. And receive adequate re

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

2012-01-24 Thread Christopher Faylor
On Tue, Jan 24, 2012 at 11:26:50AM -0800, Andrew DeFaria wrote: >That would be true if Corinna's entire life is only on this forum. I >suspect she might have a little bit more of a life outside of this forum >and outside of computers. Maybe I'm wrong... As someone who knows Corinna outside of th

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

2012-01-24 Thread Andrey Repin
Greetings, Andrew DeFaria! >>> Would it kill you to be nice and say something >>> like "No it has to be one line. You must be using the wrong key"??? >> Let me rephrase: > Csaba - I wasn't talking to you! Then send your messages privately. And receive adequate response. -- WBR, Andrey Repin (an

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

2012-01-24 Thread Andrew DeFaria
On 1/24/2012 9:23 AM, Csaba Raduly wrote: Would it kill you to be nice and say something like "No it has to be one line. You must be using the wrong key"??? Let me rephrase: Csaba - I wasn't talking to you! Andrew: I have a Putty key and it has multiple lines. It does not work with sshd. Corin

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

2012-01-24 Thread Csaba Raduly
Hi Andrew, On Tue, Jan 24, 2012 at 3:51 PM, Andrew DeFaria wrote: > On 01/24/2012 01:57 AM, Corinna Vinschen wrote: $ man sshd >>> >>> Could you be a bit more vague! ;-) >> >> The sshd manpage contains a chapter about the layout of the >> authorized_keys file.  So what else do you expec

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

2012-01-24 Thread Andrew DeFaria
On 01/24/2012 01:57 AM, Corinna Vinschen wrote: $ man sshd Could you be a bit more vague! ;-) The sshd manpage contains a chapter about the layout of the authorized_keys file. So what else do you expect? Why more vagueness of course. Otherwise you might be seen as being directly helpful and

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

2012-01-24 Thread Corinna Vinschen
On Jan 22 16:30, Andrew DeFaria wrote: > On 1/22/2012 10:21 AM, Len Giambrone wrote: > >I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them > >using > >ssh-keygen: > > > >ssh-keygen -f putty_key -i> openssh_key > I tried this. It didn't work. Same error as before. > > Re

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

2012-01-24 Thread Corinna Vinschen
On Jan 23 12:24, Andrew DeFaria wrote: > On 1/23/2012 11:38 AM, Corinna Vinschen wrote: > >On Jan 23 11:01, Andrew DeFaria wrote: > >> BEGIN SSH2 PUBLIC KEY > >>Comment: "dsa-key-20120121" > >>B3NzaC1kc3MAAACBAMj5GQUtOJvnb7j47Mj7Tfmvx8gKidp1om5c135lFI6+ > >>gslqvjjWbuOBKenYDnYsnwsl4L31

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

2012-01-23 Thread Andrew DeFaria
On 1/23/2012 12:45 PM, Len Giambrone wrote: Well, try adding the key to authorized_keys on a box where you have ssh working and see if it works. If not, you know you have a key problem. If so, you know you have a permissions problem. Good approach. Tried it. It worked! More evidence that this

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

2012-01-23 Thread Len Giambrone
Well, try adding the key to authorized_keys on a box where you have ssh working and see if it works. If not, you know you have a key problem. If so, you know you have a permissions problem. -Len On Jan 23, 2012, at 3:40 PM, Andrew DeFaria wrote: > On 1/23/2012 11:59 AM, Len Giambrone wrote

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

2012-01-23 Thread Andrew DeFaria
On 1/23/2012 11:59 AM, Len Giambrone wrote: That looks like an SSH2 key, not an OpenSSH key. I downloaded puttygen to see exactly what you see. And after you load a key (generate one) right at the top it says: Public key for pasting into OpenSSH authorized_keys file: _key here_ For example, h

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

2012-01-23 Thread Andrew DeFaria
On 1/23/2012 11:38 AM, Andrey Repin wrote: Greetings, Andrew DeFaria! What "feature" does putty have that I need? A GUI dialog box that I need to fill out to connect to a system? No, you don't need a GUI dialog box to connect to your system with PuTTY. Just invoke it with putty.exe -ssh userna

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

2012-01-23 Thread Andrew DeFaria
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: -BEGIN DSA PRIVATE KEY- MIIBuwIBAAKBgQDI+RkFLTib52+4+OzI+035r8fIConadaJuXNd+ZRSOvoLJar44 1m7jgSnp2A52LJ8LJeC99c7NQ1BBoHueRkgBWReH7orWH2T/vlFrPRgIU48vvgPH 4

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

2012-01-23 Thread Len Giambrone
That looks like an SSH2 key, not an OpenSSH key. I downloaded puttygen to see exactly what you see. And after you load a key (generate one) right at the top it says: Public key for pasting into OpenSSH authorized_keys file: _key here_ For example, here is what it says for the key I just generat

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

2012-01-23 Thread Andrey Repin
Greetings, Andrew DeFaria! I believe that PuTTy is SSH2, while Cygwin is OpenSSH. >> PuTTY using it's own format for SSH2 keys. As explained in help file. > That's another thing about these one offs - they invent there own ways > of doing things making them different and not compatible with

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

2012-01-23 Thread Andrey Repin
Greetings, Andrew DeFaria! > What "feature" does putty have that I need? A GUI dialog box that I need to > fill out to connect to a system? No, you don't need a GUI dialog box to connect to your system with PuTTY. Just invoke it with putty.exe -ssh username@address It'll use default session conf

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

2012-01-23 Thread Corinna Vinschen
On Jan 23 11:01, Andrew DeFaria wrote: > On 1/23/2012 1:57 AM, Corinna Vinschen wrote: > >>-BEGIN DSA PRIVATE KEY- > >>MIIBuwIBAAKBgQDI+RkFLTib52+4+OzI+035r8fIConadaJuXNd+ZRSOvoLJar44 > >>1m7jgSnp2A52LJ8LJeC99c7NQ1BBoHueRkgBWReH7orWH2T/vlFrPRgIU48vvgPH > >>4OrLFRtmN/uYj/BTbWFilN2jFZiiESSr4p

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

2012-01-23 Thread Andrew DeFaria
On 1/23/2012 1:57 AM, Corinna Vinschen wrote: On Jan 22 16:30, Andrew DeFaria wrote: On 1/22/2012 10:21 AM, Len Giambrone wrote: I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them using ssh-keygen: ssh-keygen -f putty_key -i> openssh_key I tried this. It didn't wo

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

2012-01-23 Thread Andrew DeFaria
On 01/23/2012 03:02 AM, Andrey Repin wrote: Greetings, Andrew DeFaria! On 1/22/2012 10:21 AM, Len Giambrone wrote: I believe that PuTTy is SSH2, while Cygwin is OpenSSH. PuTTY using it's own format for SSH2 keys. As explained in help file. That's another thing about these one offs - they inve

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

2012-01-23 Thread Andrew DeFaria
On 01/23/2012 02:56 AM, Andrey Repin wrote: Greetings, Andrew DeFaria! I try to explain to people how getting Putty to do ssh, Reflection X to do X11, FireFTP or whatever to do ftp, ActiveState Perl to do Perl, etc. is the wrong way to go about putting together a good set of tools when you can

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

2012-01-23 Thread Andrey Repin
Greetings, Andrew DeFaria! > On 1/22/2012 10:21 AM, Len Giambrone wrote: >> I believe that PuTTy is SSH2, while Cygwin is OpenSSH. PuTTY using it's own format for SSH2 keys. As explained in help file. >> You can convert them using ssh-keygen: >> >> ssh-keygen -f putty_key -i> openssh_key > I tr

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

2012-01-23 Thread Andrey Repin
Greetings, Andrew DeFaria! > I try to explain to people how getting Putty to do ssh, Reflection X to > do X11, FireFTP or whatever to do ftp, ActiveState Perl to do Perl, etc. > is the wrong way to go about putting together a good set of tools when > you can more simply just get Cygwin to do all

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

2012-01-23 Thread Corinna Vinschen
On Jan 22 16:30, Andrew DeFaria wrote: > On 1/22/2012 10:21 AM, Len Giambrone wrote: > >I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them > >using > >ssh-keygen: > > > >ssh-keygen -f putty_key -i> openssh_key > I tried this. It didn't work. Same error as before. > > Re

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

2012-01-22 Thread Andrew DeFaria
On 1/22/2012 10:21 AM, Len Giambrone wrote: I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them using ssh-keygen: ssh-keygen -f putty_key -i> openssh_key I tried this. It didn't work. Same error as before. Read 8.2.12 of the Putty help file - had no idea there was a

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

2012-01-22 Thread Andrey Repin
Greetings, Andrew DeFaria! > You mention "converting keys from OpenSSH to PuTTY, or the other way > around". What is this conversion process that you speak of? How do you > convert a PuTTY key to an OpenSSH key? Because so far nobody's mentioned > where in this process I need to convert between

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

2012-01-22 Thread Andrew DeFaria
On 01/22/2012 10:21 AM, Len Giambrone wrote: I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them using ssh-keygen: ssh-keygen -f putty_key -i> openssh_key If this is true then it kinda kills the "ease of use" thing. It's hard enough trying to tell somebody to use putt

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

2012-01-22 Thread Len Giambrone
I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them using ssh-keygen: ssh-keygen -f putty_key -i > openssh_key -Len On Jan 22, 2012, at 1:47 AM, Andrew DeFaria wrote: > On 01/21/2012 07:28 PM, Andrey Repin wrote: >> Well, *I* am using Cygwin SSH and PuTTY. And I've

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

2012-01-21 Thread Andrew DeFaria
On 01/21/2012 07:28 PM, Andrey Repin wrote: Well, *I* am using Cygwin SSH and PuTTY. And I've had no issues other than what I have explained. One way or another, back or forth, to my Linux box, or from it, from my Windows box to any imaginable server around the globe - no problem. The scenario he

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

2012-01-21 Thread Andrey Repin
Greetings, Andrew DeFaria! >> Ok, now we're talking. There's indeed a tricky part involved, let me >> try to cover it for you. On puttygen part, it seems you did it right. >> (Though, saving public key part is only required for ssh servers >> compliant with RFC4716.) On connection part... seems

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

2012-01-21 Thread Andrew DeFaria
On 01/21/2012 12:34 PM, Andrey Repin wrote: Ok, now we're talking. There's indeed a tricky part involved, let me try to cover it for you. On puttygen part, it seems you did it right. (Though, saving public key part is only required for ssh servers compliant with RFC4716.) On connection part...

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

2012-01-21 Thread Andrey Repin
Greetings, Andrew DeFaria! >> What key type you generate? How do you save both parts of the key? You >> said you copied public key, did you saved private key as well? Or you >> just assumed it was saved somewhere automatically? -- WBR, Andrey >> Repin (anrdae...@freemail.ru) 21.01.2012, <16:36>

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

2012-01-21 Thread Andrew DeFaria
On 1/21/2012 4:39 AM, Andrey Repin wrote: What key type you generate? How do you save both parts of the key? You said you copied public key, did you saved private key as well? Or you just assumed it was saved somewhere automatically? -- WBR, Andrey Repin (anrdae...@freemail.ru) 21.01.2012, <16:

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

2012-01-21 Thread Andrew DeFaria
On 01/21/2012 04:39 AM, Andrey Repin wrote: http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter8.html#pubkey states to basically use PuttyGen to generate the key then copy and paste it into your ~/.ssh/authorized_key

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

2012-01-21 Thread Andrey Repin
Greetings, Andrew DeFaria! > Now putty does work but I like having pre-shared keys with ssh sessions. > But I can't seem to get Putty's PuttyGen generated ssh keys to work with > Cygwin's sshd. Then you're doing something wrong. > http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter8.html#p

Putty and pre-shared keys with Cygwin's sshd

2012-01-20 Thread Andrew DeFaria
I use Cygwin a lot and use ssh a lot. I typically set up sshd on my laptop with Cygwin and enjoy ssh'ing (and scp'ing, etc.) around effortlessly between various Unix/Linux and Cygwin machines. I'd like to show this goodness to others but many people don't bother installing Cygwin or at least do