How to upload files in haos, but always without permission?

I want to install hacs and downloaded hacs.zip

Follow the online tutorial to install Samba share in the Add-on Store. But the installation always fails.

I can connect to ssh and try to use ssh to upload, but always:

config $ scp -O -r "F:\hacs" [email protected]:/homeassistant/custom_components/
[email protected]: Permission denied (publickey,password).
ssh: Could not resolve hostname f: Name has no usable address

What are we gonna do?

thank you

There are many things going wrong here. But lets start at the basics.

  • What kind of HA installation do you have? and which version is it.
  • What online tutorial did you use?
  • Where are you running this command from?
  • “I can connect to ssh” does not tell us anything, ssh is a tool to connect to a pc or other device that supports it.

Follow the instructions

1.VMware Workstation
os version: home assistant os 12.4
home assistant core: 2024.8.1

2.This is a tutorial for other users.
Since I’m using“ wget -O - https://get.hacs.xyz | bash - ”this installation will not be accessible.
A considerable number of tutorials will instruct you to download hacs.zip first.
Then install “Samba share” and upload it to haos.
However, I am unable to install “Samba share”.
Uploading it through any other means would result in: Permission denied.

3.command from “setting - Add-ons - ssh&web terminal”

Problem seems to be that it cannot resolve to: https://raw.githubusercontent.com/hacs/get/main/get
This is what the https://get.hacs.xyz redirects to. For some reason your network DNS thinks that is 0.0.0.0 and it wont connect to that.

So thats the main issue you need to fix before trying to get the files over.
That may also be the reason you cannot install the addon as it cannot reach the download location.

Try the https://raw.githubusercontent.com/hacs/get/main/get in your normal browser and it should show this at the beginning: (there is more in the link)

#!/bin/bash
# wget -O - https://get.hacs.xyz | bash -
set -e

RED_COLOR='\033[0;31m'
GREEN_COLOR='\033[0;32m'
GREEN_YELLOW='\033[1;33m'
NO_COLOR='\033[0m'

declare haPath
declare -a paths=(
    "$PWD"
    "$PWD/config"
    "/config"
    "/homeassistant"
    "$HOME/.homeassistant"
    "/usr/share/hassio/homeassistant"
)

If your browser also resolves to 0.0.0.0 then its your home network thats the issue, otherwise something in your VM network.

Also on a side note:

I can connect to ssh and try to use ssh to upload, but always:

That command has to be run from the computer you have the files on in the F:\hacs drive and directory, not the target (HA), when u ssh into the HA you are effectively working from the HA machine.