Jump to content


flozero

Member Since 7 Apr 2023
Offline Last Active 15 Aug 2023 03:28
-----

Posts I've Made

In Topic: no way to connect to ssh via authorized_keys

9 April 2023 - 10:48

 

 

Hi,

I had a similar problem a few weeks ago. On my Linux side I always used ssh-copy-id to copy my public key to my VU box. authorized_keys was created in /etc/dropbear and looked OK but nothing worked. After I copied authorized_keys also to /home/root/.ssh/ I could again sign in without password.

 

Ralf

Hello, 

I also use ssh-copy-id to copy my public key.  I tried to copy also manually in /home/root/.ssh without success, here what I have : 

 

root@vuzero:~# ls -la /etc/dropbear/
drwxr-xr-x    2 root     root           312 Apr  9 10:21 .
drwxr-xr-x   36 root     root          6528 Apr  8 16:54 ..
-rw-------    1 root     root           742 Apr  9 10:20 authorized_keys
-rw-------    1 root     root           242 Apr  9 10:20 dropbear_rsa_host_key

and 

 

root@vuzero:~# ls -la /home/root/.ssh/
drwxr-xr-x    2 root     root           312 Apr  9 10:19 .
drwx------    4 root     root           584 Apr  9 10:18 ..
-rw-------    1 root     root           742 Apr  8 12:41 authorized_keys
-rw-------    1 root     root           242 Jan  1  1970 dropbear_rsa_host_key

Maybe an issue with permission on files ?
Thx

 

Hi,

here is mine and it works OK:

root@vuduo4kse:~# ls -la /home/root/.ssh/
drwx------    2 root     root          4096 Feb  3  2022 .
drwx------    4 root     root          4096 Nov 25  2021 ..
-rw-------    1 root     root           398 Jun 30  2021 authorized_keys
root@vuduo4kse:~#

So, there is a slight difference with yours on the "." directory

 

 

I have now the same as you, but no success. 

root@vuzero:~# ls -la /home/root/.ssh/
drwx------    2 root     root           232 Apr  9 11:42 .
drwx------    4 root     root           584 Apr  9 10:18 ..
-rw-------    1 root     root           742 Apr  8 12:41 authorized_keys

What kind of rsa key do you have on your PC ?
 

Mine is : 
flozero@desktop-PC  ~  ssh-keygen -l -f .ssh/id_rsa 
4096 SHA256:Qbe5118ujhf+zeu56i1jIEUI+Oj5454515 flozero@desktop-PC (RSA)

 


In Topic: no way to connect to ssh via authorized_keys

9 April 2023 - 09:24

Hi,

I had a similar problem a few weeks ago. On my Linux side I always used ssh-copy-id to copy my public key to my VU box. authorized_keys was created in /etc/dropbear and looked OK but nothing worked. After I copied authorized_keys also to /home/root/.ssh/ I could again sign in without password.

 

Ralf

Hello, 

I also use ssh-copy-id to copy my public key.  I tried to copy also manually in /home/root/.ssh without success, here what I have : 

 

root@vuzero:~# ls -la /etc/dropbear/
drwxr-xr-x    2 root     root           312 Apr  9 10:21 .
drwxr-xr-x   36 root     root          6528 Apr  8 16:54 ..
-rw-------    1 root     root           742 Apr  9 10:20 authorized_keys
-rw-------    1 root     root           242 Apr  9 10:20 dropbear_rsa_host_key

and 

 

root@vuzero:~# ls -la /home/root/.ssh/
drwxr-xr-x    2 root     root           312 Apr  9 10:19 .
drwx------    4 root     root           584 Apr  9 10:18 ..
-rw-------    1 root     root           742 Apr  8 12:41 authorized_keys
-rw-------    1 root     root           242 Jan  1  1970 dropbear_rsa_host_key

Maybe an issue with permission on files ?
Thx


In Topic: no way to connect to ssh via authorized_keys

8 April 2023 - 21:10

root@sf8008:~# cat /etc/default/dropbear 
DROPBEAR_EXTRA_ARGS=""
DROPBEAR_RSAKEY_ARGS="-t ecdsa -s 521"

But I've never generated new keys on the box, I use the key that is generated when the box is flashed.

 

If your distro doesn't accept the algorithm there are only two things you can do: add it to your distro, or replace dropbear by sshd.

 

You have the same config file as me. I've also never generated new keys. 
It's weird that it works from your side. 

In my distro I'm using a 4096 sha256 rsa key, what about you ?

(ssh-keygen -l -f <file> to show its size and algorithm.)

ssh-keygen -l -f .ssh/id_rsa 

In Topic: no way to connect to ssh via authorized_keys

8 April 2023 - 20:29

I flashed 2 vu+ (zero and solo2) last images with the same result. 

What do you have in your /etc/default/dropbear file ?


In Topic: no way to connect to ssh via authorized_keys

8 April 2023 - 15:27

Did you restore a backup from an older or other image?

No, it's a fresh flash 
Do I have to flash with the official vu+ image before installing openpli ?
http://code.vuplus.c...30&model=vuzero

Here my default config file for dropbear : 

/etc/default/dropbear 

DROPBEAR_EXTRA_ARGS=""
DROPBEAR_RSAKEY_ARGS="-t ecdsa -s 521"

path of the public key of my desktop computer/etc/dropbear/authorized_keys