Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, everyone. I am experiencing a login problem to a remote computer using SSH and a pub key. The RSA key, was generated under WinXP via the SecureCRT client. Recently, ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3

    Problem with RSA key

    Hello, everyone.

    I am experiencing a login problem to a remote computer using SSH and a pub key.

    The RSA key, was generated under WinXP via the SecureCRT client. Recently, I have ported to the Suse 10.1 distro. The public key, is stored to the remoted computer I am trying to login.

    I have installed the RSA key, to my linux with the ssh-copy-id script, and additionally I have copied the pub key, into my /home/user/.ssh folder.

    When I am trying to login with ssh, I am being prompted for a password. The problem is that I was not using a pass under XP. When I am trying to login using the KSSH client from linux and specify as identity the RSA key, I am prompted for a passphrase (as I was under XP), but when I enter the passphrase, I receive an error and I am also prompted for a password.

    Note that from another pc under XP, I can login as I used to with the same RSA key.

    Any ideas would be helpful.

    Thanks, in advance for your time.

    Jim

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Posts
    45
    It sounds like you generated an ssh key from a windows box and then copied that to a Linux box.

    Is that right?

  3. #3
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3
    Yes, that is exactly what I did. I had no other choice, since the key was generated from Win about a year before.

    To be honest, Number33 have absolutely no idea if that was right.

    Do you have any ideas on how I will be able to port my key to linux?

    Thanks, in advance.

  4. #4
    Just Joined!
    Join Date
    Nov 2006
    Posts
    45
    I don't know if a SecureCRT key can be converted to an OpenSSH key.

    Define the scenario of what you're trying to do and lets take it from scratch.

  5. #5
    Just Joined!
    Join Date
    Nov 2006
    Posts
    3
    Lets take it from the scratch, Number33. Thanks for your interest.

    What I am trying to do, is login to a remote server using SSH under linux, with a public key I had created under Win with the SecureCRT client.

    I have just found a way, to convert the SecureCRT key, to openSSH key via the command,
    Code:
    ssh-keygen -i -f mysecurecrt.pub > myopenssh.pub
    which is supported for For OpenSSH 2.9 and later (The server I am trying to login to, supports OpenSSH_3.8.1p1).

    Now, when I login with the myopenssh.pub key, I receive the following error from verbose mode:
    Code:
    debug1: Trying private key: ~/.ssh/myopenssh.pub
    debug1: PEM_read_PrivateKey failed
    debug1: read PEM private key done: type <unknown>
    Afterwards, I am prompted for a passphrase, and when I give the one I had, I am also receiving an error.

    Do you have any ideas why the previous error happens?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...