Problem with SSH - SSH

This is a discussion on Problem with SSH - SSH ; Hi guys, i have the following problem: there is a box with OpenSSH_2.3.0p1 and one with OpenSSH_4.2p1. I want to scp from the old one with scp and a rsa-key to the new one. but this isn't possible because the ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Problem with SSH

  1. Problem with SSH

    Hi guys,

    i have the following problem:
    there is a box with OpenSSH_2.3.0p1 and one with OpenSSH_4.2p1.
    I want to scp from the old one with scp and a rsa-key to the new one.

    but this isn't possible because the old version uses a different pubkey
    file format. any ideas how i can convert the old key.pub to the new
    version? Will this solution even work?
    --


    Mit freundlichen Grüßen

    Franz Bettag

    ____________________________
    QS Housing
    Franz Bettag
    Ludwigstr. 45-47
    90402 Nürnberg
    http://www.qs-housing.net

    Tel: +49 1805 737376 664
    Fax: +49 1805 737376 665

  2. Re: Problem with SSH

    On 2006-03-10, Franz Bettag wrote:
    > i have the following problem:
    > there is a box with OpenSSH_2.3.0p1 and one with OpenSSH_4.2p1.
    > I want to scp from the old one with scp and a rsa-key to the new one.
    >
    > but this isn't possible because the old version uses a different pubkey
    > file format. any ideas how i can convert the old key.pub to the new
    > version? Will this solution even work?


    I'm not aware of any differences in file format (although really old
    old version used authorized_keys2 for SSHv2 keys). I do recall that
    versions of that vintage had a bug in DSA (or was that RSA?) key handling,
    so it may be worth trying both if you haven't already.

    --
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.

  3. Re: Problem with SSH

    In the manpage of ssh-keygen of that old SSH toolset it doesn't even say
    anything about DSA

    Darren Tucker schrieb:
    > On 2006-03-10, Franz Bettag wrote:
    > I'm not aware of any differences in file format (although really old
    > old version used authorized_keys2 for SSHv2 keys). I do recall that
    > versions of that vintage had a bug in DSA (or was that RSA?) key handling,
    > so it may be worth trying both if you haven't already.


    Yes there are differences. Here some examples of random keys i just created.

    Old identity.pub:
    1024 35
    12828413111366841601620652517948440528994564784621 34904105932093238155677712436489707995845857907878 37507548596195186425202555632991342904553268568415 04380300030065114025366286133197394483435938994703 33875419338135600067880390270180611402873591314958 02470959293274782125106193906124595375116714625705 888732977
    root@www

    New identity.pub:
    ssh-dss
    AAAAB3NzaC1kc3MAAAIBAP5cnprY5ZxSNI0lbQLWmpAEqw8AXJ mTiiL42ziP4faK+MbAEZxKT33mIJM9eqGW7dN1i4RK2J9+3SLn p1rqOX4R2V3S/Ur+T+CSZ6S7vTdyL6RfeGCjpzYL4hwedueuvf9KF/2kLl+5jIZ86zS5LRCtgUa/sJH6Fu7vKQa7zHCWzdFMlquZo2ej8G6ZNRYVSD3H/GxPecLPBqh3kgIcOXAypfEb4RQueG+B4ou2O8+OWRJD/xpodQtt/coa74o8eOFoJSxIcCkSAPMF/bBV1q4Qw0gONkoN3QCy7zwDB5BjZVIdyfwlLiG9YAQWcuQUN+2 DGc2UbstjgLX37mjT+DNwWSeM8EOsxt/oaaycrHytatNxqLf8Go/5jnFjd707yErpD/kUhTecSjP94RpSYq61ghluN9PlIHFbPUoOcwKsGsB57pqa7+Ni +z3rBCzB/KC3ZF2CoVLPP2a+hZC4lY7dPl7gwEkO7mGFHnZ5m/jqAO/W8zjUOUwUyCjKXcuuZAVESROj3lGQSeFYVP4a47Y4GzjPU9VJb ZqCia4FBFpftXE5TV6tDr72RmnamNGcj3GRryTw7f4+5JCTQV4 C8z30KtOOUIEFi8NL9L337xppZdV+hVagK73D0IyhVzHsMugS1 hbnzOqpBos4JcKf+n+jtvay010Ad0DVspIRN65JAAAAFQC2Vk4 EE1TYC6r0FtOgraBU5om7mQAAAgEAhSSOjxsgM0ksRk2+7OYIg HDTOR7feDHuHFnFdkk7/wFDh/BLK5V0VVF2H1MANd2afxl+fb7BODXlL8MHuwupccQSaR5Llqyr 50048YuD82dIgAGrYNKnNK7DwgDuQ115FTfGmCCwu55G35/OfI6k4xjYpgM41Y1fIjBA5hayokUBLos61sr4j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9FZra0mSxhF++rocIvvwuf1tTnIPIfs4B2hPkMDL4T/CqksRreKft+H5puKmLNskA2t/IDa7TNaTSYemhgfG+QpzIYByhaElf/+FbVZ2xrz4KgarjOU4hh9bgtvMNVQYEZ+paIqk=
    Test Key


    --


    Mit freundlichen Grüßen

    Franz Bettag

    ____________________________
    QS Housing
    Franz Bettag
    Ludwigstr. 45-47
    90402 Nürnberg
    http://www.qs-housing.net

    Tel: +49 1805 737376 664
    Fax: +49 1805 737376 665

  4. Re: Problem with SSH

    On 2006-03-10, Franz Bettag wrote:
    > Yes there are differences. Here some examples of random keys i just created.
    >
    > Old identity.pub:
    > 1024 35
    > 12828413111366841601620652517948440528994564784621 34904105932093238155677712436489707995845857907878 37507548596195186425202555632991342904553268568415 04380300030065114025366286133197394483435938994703 33875419338135600067880390270180611402873591314958 02470959293274782125106193906124595375116714625705 888732977
    > root@www


    That's a ssh v1 key. As long as you're making a Protocol 1 connection
    it should still work with a current version of sshd.

    You can generate one with current versions of ssh-keygen with the
    appropriate options. From looking at the code for 2.3.0, you can generate
    a Protocol 2 key with the "-d" option.

    --
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.

+ Reply to Thread