DropbearSSH with key authentication to OpenSSH server
by kzo81 from LinuxQuestions.org on (#6JN3K)
Hi Folks,
I'd like to rsync over ssh with key authentication, however it always ask for the password, if it was for the first time, it would be ok, but whenever the automatiion sycript invoked with systemD, a password promt comes up in the background. It looks like the dropbear client doesnt use the host_key file.
This is how I created the key:
Code:dropbearkey -t rsa -f /usr/bin/dropbear_rsa_host_keyThis is how I extracted the pubclic key:
Code:dropbearkey -y -f /usr/bin/dropbear_rsa_host_keyCode:Public key portion is:
ssh-rsa AAAAB3.......AAAAAAA root@G1_01
Fingerprint: sha1!! 5f:97:df:5a:c5:b7:8c:66:61:3eAnd I copied the green part to the OpenSSH server's user's .ssh/authorized_keys file
Code:rsync --remove-source-files -aze ssh -p $PORT -i /usr/bin/dropbear_rsa_host_key $SRC $USER@$IP:testCould you please tell me what am I doing wrong? It was working for weeks, but I dont remember how I got it working, the bash history has been overriten :-( I might have used dropbearconvert...
I'd like to rsync over ssh with key authentication, however it always ask for the password, if it was for the first time, it would be ok, but whenever the automatiion sycript invoked with systemD, a password promt comes up in the background. It looks like the dropbear client doesnt use the host_key file.
This is how I created the key:
Code:dropbearkey -t rsa -f /usr/bin/dropbear_rsa_host_keyThis is how I extracted the pubclic key:
Code:dropbearkey -y -f /usr/bin/dropbear_rsa_host_keyCode:Public key portion is:
ssh-rsa AAAAB3.......AAAAAAA root@G1_01
Fingerprint: sha1!! 5f:97:df:5a:c5:b7:8c:66:61:3eAnd I copied the green part to the OpenSSH server's user's .ssh/authorized_keys file
Code:rsync --remove-source-files -aze ssh -p $PORT -i /usr/bin/dropbear_rsa_host_key $SRC $USER@$IP:testCould you please tell me what am I doing wrong? It was working for weeks, but I dont remember how I got it working, the bash history has been overriten :-( I might have used dropbearconvert...