Dropbear SSH -> OpenSSH
by kzo81 from LinuxQuestions.org on (#6PY68)
Hi Folks,
I have a small computer that has only DropbearSSH client and I would like to ssh into my server with a rsa key file, without a password prompt.
I played around with conversions:
dropbearconvert dropbear openssh /etc/dropbear/dropbear_key /etc/dropbear/openssh_key
Each time my script asks for password.
So how can I generate a passwordless key file with dropbear?
I generated the key like this:
Code:#!/bin/bash
KEY="/home/root/.ssh/id_dropbear"
PUB="/home/root/.ssh/id_dropbear.pub"
if [ -f "$KEY" ];then
rm "$KEY"
fi
if [ -f "$PUB" ];then
rm "$PUB"
fi
dropbearkey -t rsa -f ~/.ssh/id_dropbear
dropbearkey -y -f /home/root/.ssh/id_dropbear | tail -n2 | head -n1 > /home/root/.ssh/id_dropbear.pub
exit 0Copied the puplic portion into my OpenSSH server's authorised_keys file
Code:ssh -i /home/root/.ssh/id_dropbear -p $PORT $USER@$IPAnd it still asks for the password.
Thanks,
Zolee
I have a small computer that has only DropbearSSH client and I would like to ssh into my server with a rsa key file, without a password prompt.
I played around with conversions:
dropbearconvert dropbear openssh /etc/dropbear/dropbear_key /etc/dropbear/openssh_key
Each time my script asks for password.
So how can I generate a passwordless key file with dropbear?
I generated the key like this:
Code:#!/bin/bash
KEY="/home/root/.ssh/id_dropbear"
PUB="/home/root/.ssh/id_dropbear.pub"
if [ -f "$KEY" ];then
rm "$KEY"
fi
if [ -f "$PUB" ];then
rm "$PUB"
fi
dropbearkey -t rsa -f ~/.ssh/id_dropbear
dropbearkey -y -f /home/root/.ssh/id_dropbear | tail -n2 | head -n1 > /home/root/.ssh/id_dropbear.pub
exit 0Copied the puplic portion into my OpenSSH server's authorised_keys file
Code:ssh -i /home/root/.ssh/id_dropbear -p $PORT $USER@$IPAnd it still asks for the password.
Thanks,
Zolee