Send files with SSH

I cant get it working for the /config/www folder in hassio.

I have:
raspberry pi 4
Home Assistant core 0.117.2
Addon: SSH & Web Terminal

I can use:

cp /dev/stdin/ ~/test.txt

That will create the file i want, but it is not in the /config/www folder. When i use the code from above with the full path i get a error. Permission issues, i have seen “solutions” like root access and big warnings next to them, so i dont want to mess around with root permissions and stuff.

How can i send files over SSH to the right folder?

Maybe share a new created folder? Or move files around with some code?

Hi,

Use sudo, i.e. sudo cp xxx.txt

Use the SAMBA addon instead.

Shouldn’t the target path be

cp /dev/stdin/ ~/config/www/test.txt

?

You are right, but than i get permission errors.

I now use the mv command and move the file after i cp first :slight_smile:

1 Like