Re: How can Putty load my public key generated with OpenSSH

From: Ralph (rgreen_at_preferredstaff.net)
Date: 10/21/03

  • Next message: Kyler Laird: "Re: SSH on port 80?"
    Date: 20 Oct 2003 18:58:38 -0700
    
    

    Jacob Nevins <jacobn@chiark.greenend.org.uk> wrote in message news:<tnh*kmr5p@news.chiark.greenend.org.uk>...
    > Ralph <rgreen@preferredstaff.net> writes:
    > > I have the OpenSSH daemon running on a Linux box. I have Putty on a
    > >Windows machine. I want them to talk securely. I can't figure out
    > >how to make Putty use the public keys I generated with OpenSSH and
    > >copied over from the Linux box.
    >
    > Why do you want to load a _public_ key into PuTTY?
    >
    > To authenticate a user using pubkey auth, you need a _private_ key on
    > the client (PuTTY) and a _public_ key on the server (OpenSSH).

      On the OpenSSH server box, I generated two keys. One is private and
    stays there. One is public and gets copied to the remote machine I
    will connect from. It is that public key I need to load into Putty.
    I also generated a set of keys on the Windows system with Putty. I
    copied the public key from there to the Linix box and put it into
    authorized_keys. I have PasswordAuthentication off on the Linux box
    for improved security, so I think I need both sets of keys.

      Perhaps my terminology is off. If so, please correct me. I call
    the key that stays on the machine that generates it a private
    key(because it is not disclosed to anyone). I call the key that gets
    copied to the remote machine the public key. I am not trying to come
    up with my own definitions. This is my impression from what I have
    read.

      Even if I had the term wrong, as I said in the original note, I
    can't get putty to load the auhorized key file. I tried the
    conversions menu choice in puttygen, too. I don't think I mentioned
    that in the first note. I suspect the problem is the format of the
    key file. OpenSSH generates a single line (for each key) in the key
    file. Putty puts a header on the key and breaks the lines up. I
    could edit the key file to change its format, but I don't know what
    values to put for all the header fields.
    Good day,
    Ralph


  • Next message: Kyler Laird: "Re: SSH on port 80?"

    Relevant Pages

    • Re: sshd putty and DSA
      ... configuring putty to connect to openssh server. ... Copy the public key and paste it to a new file ...
      (SSH)
    • Re: Putty/OpenSSH Public key auth
      ... I am currently using Public Key generated by Putty on Opensshr server ... Put the file to the right place on your OpenSsh machine. ... I am using Putty and OpenSSH. ...
      (SSH)
    • Re: How can Putty load my public key generated with OpenSSH
      ... > I have the OpenSSH daemon running on a Linux box. ... I have Putty on a ... >Windows machine. ...
      (comp.security.ssh)
    • Re: ssh v2 public key identification works and works not
      ... >>Connecting to A from Dor B using ssh v2 and public ... > Well, if you were to _tell_ us what PuTTY is doing, we might be able ... > get public key authentication wrong in all of those situations. ... > key format as OpenSSH, so you can't just reuse the same key file? ...
      (comp.security.ssh)
    • Re: PuTTY with Linux
      ... note that putty does not understand keys generated by openssh for versin ... you have to use puttygen's keys for version 2 stuffs. ... > I am trying to make an SSH connection from my PuTTY software on a Windows XP ... I have installed SSH on both and SSHD is running on the linux box. ...
      (comp.security.ssh)