Addons: SSH: wrong ~/.ssh folder mapping in the container?

Created on 1 Feb 2020  路  2Comments  路  Source: home-assistant/addons

Hi,
I noticed that in SSH Server addon, there is a persistent .ssh in /data.
Il looks like in the container that /data/.ssh folder is mapped to /root/.ssh/.ssh , while in my opinion it should be mapped to /root/.ssh.

This is what I can see in terminal:

~ $ pwd
/root
~ $ ls -all .ssh/
total 12
drwxr-xr-x    2 root     root          4096 Feb  1 19:31 .
drwx------    1 root     root          4096 Feb  1 19:31 ..
lrwxrwxrwx    1 root     root            10 Feb  1 19:31 .ssh -> /data/.ssh
-rw-------    1 root     root           396 Feb  1 19:30 authorized_keys

I took a look at https://github.com/home-assistant/hassio-addons/blob/master/ssh/data/run.sh#L81 but I couldn't spot the issue...

I am not sure this is a bug or it's an intended behaviour... I'd say it's not intended.

Thanks!

ssh bug

Most helpful comment

Fix with 8.2

All 2 comments

I cannot reproduce this on my end, tested on multiple systems.

image

Fix with 8.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nealeydee picture nealeydee  路  7Comments

cdrom1028 picture cdrom1028  路  4Comments

thisisme picture thisisme  路  10Comments

joshwapohlmann picture joshwapohlmann  路  8Comments

davidkaplan picture davidkaplan  路  3Comments