This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM DS-5 Failed to connect sshd - Wrong SSH Key Length

Hi everyone,

i am currently in the process of getting started with arm the arm ds-5 enviroment.

I've already managed to compile an application with my used gcc toolchain. This programm als runs on the target board (Arrow SoCKit) together with my Kernel and rootfs (also build with the used toolchain).

But currently i have to copy it manually onto the target board and i can only run it, no debugging.

So i've searched for a solution and found this Getting started DS-5 Documentation & Resources / Tutorials / Linux Application Debug Tutorial | ARM DS-5 Development Studio

Wich is exactly what i want (gdbserver is on my target rootfs).

But when i try to connect via ssh to my target it only displays this error:

error.jpg

I've checked my ssh keys on the target, rsa was 2048 bit.

Created new keys and now they are 1024 bit which is the minimum but should work.

I am using openssh on my target. SSH via console and sftp via console works flawless.

Although it doesn't. I can't get rid of this error.

All keys are 1024 (rsa,dsa, ed25519) ecdsa is 521 (no difference with 256).

I've enabled Prrotocol version 1,

changed the ip address (don't know where or if keys are stored).

But i am still stuck with this Error

thx for any help

Parents
  • For anyone else stumbling over this: the problem is the prime size in /etc/ssh/moduli, not the key length. You can regenerate that file with a maximum of 1024 bits like this:

    ssh-keygen -G "${HOME}/moduli" -b 1024
    ssh-keygen -T /etc/ssh/moduli -f "${HOME}/moduli"
    rm "${HOME}/moduli"

    First line generates candidates in your home dir, second line tests the candidates and outputs them into /etc/ssh/moduli, third line deletes the temp file.

Reply
  • For anyone else stumbling over this: the problem is the prime size in /etc/ssh/moduli, not the key length. You can regenerate that file with a maximum of 1024 bits like this:

    ssh-keygen -G "${HOME}/moduli" -b 1024
    ssh-keygen -T /etc/ssh/moduli -f "${HOME}/moduli"
    rm "${HOME}/moduli"

    First line generates candidates in your home dir, second line tests the candidates and outputs them into /etc/ssh/moduli, third line deletes the temp file.

Children
No data