21-02-02 15:47:18 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec 21-02-02 15:47:48 WARNING (MainThread) [supervisor.jobs] 'Updater.fetch_data' blocked from execution, no supervisor internet connection 21-02-02 15:47:48 WARNING (MainThread) [supervisor.homeassistant.core] Error on Home Assistant installation. Retry in 30sec 21-02-02 15:48:18 WARNING (MainThread) [supervisor.jobs] 'Updater.fetch_data' blocked from execution, no supervisor internet connection
hassio > login # nmcli connection show NAME UUID TYPE DEVICE Wired connection 1 890cd810-f501-32a1-8fbe-9fac83693afa ethernet eth0 my-network e258af4f-f0bc-4492-955c-2c944355aaad wifi -- # nmcli con edit "Wired connection 1" //此处选择输入需要配置的网络 nmcli> set ipv4.addresses 192.168.100.10/24 Do you also want to set 'ipv4.method' to 'manual'? [yes]:
进入 SSH Server 界面,往下滚动进入配置 ssh 选项 Config,配置 authorized_keys ,输入需要 ssh 访问 HA 的电脑的 id_rsa.pub ,设置完成后在电脑终端输入 ssh root@hassio.local ,登入成功:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
$ ssh root@hassio.local Warning: the ECDSA host key for 'hassio.local' differs from the key for the IP address '192.168.53.188' Offending key for IP in /home/ranger/.ssh/known_hosts:14 Matching host key in /home/ranger/.ssh/known_hosts:18 Are you sure you want to continue connecting (yes/no)? yes
SSH access through the [SSH add-on](https://www.home-assistant.io/addons/ssh/) (which will give you SSH access through port 22) will not provide you with all the necessary privileges, and you will be asked for a username and password when typing the 'login' command. You need to follow the steps below, which will setup a separate SSH access through port 22222 with all necessary privileges.
在 U 盘根目录新建文件 authorized_keys,导入 PC id_rsa.pub 内容到 authorized_keys,随后 ssh 连接:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
$ ssh root@hassio.local -p 22222 Warning: the ECDSA host key for '[hassio.local]:22222' differs from the key for the IP address '[192.168.53.188]:22222' Offending key for IP in /home/ranger/.ssh/known_hosts:16 Matching host key in /home/ranger/.ssh/known_hosts:17 Are you sure you want to continue connecting (yes/no)? yes _ _ _ | | | | (_) | |__| | __ _ ___ ___ _ ___ | __ |/ _` / __/ __| | |/ _ \ | | | | (_| \__ \__ \_| | (_) | |_| |_|\__,_|___/___(_)_|\___/
Welcome on Hass.io CLI.
For more details use 'help' and 'exit' to close. If you need access to host system use 'login'.