notes/RK3568/移远/系统环境配置(SSH).md
2024-04-29 22:22:30 +08:00

55 lines
1.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 系统环境配置(SSH)
- [允许root账户远程SSH登陆](#允许root账户远程SSH登陆)
- [更新软件](#更新软件)
#### 允许root账户远程SSH登陆
* 设置root账户密码
```
adb shell passwd
# 输入密码quectel
```
* 修改SSH配置文件
> 修改 **#PermitRootLogin prohibit-password** 修改为 **PermitRootLogin yes**
```
adb shell
# :/PermitRootLogin 查找 PermitRootLogin 参数
vim /etc/ssh/sshd_config
```
* 重启SSH服务
```
systemctl restart sshd
```
#### 更新软件
```
apt update
apt upgrade -y
```
报错后,重新执行 apt update 出现错误:
![报错信息](../../.image/3FB06500-317D-4B87-BB76-EFC7B788B33E.png)
执行
```
apt --fix-broken install -y
```
出现错误:
![报错信息](../../.image/B707EB53-9FEF-493C-8095-33AB7D466E4B.png)
执行命令
```
dpkg -i --force-overwrite /var/cache/apt/archives/libc6-arm64-cross_2.31-0ubuntu9.9cross1_all.deb
dpkg -i --force-overwrite /var/cache/apt/archives/libx11-data_2%3a1.6.9-2ubuntu1.6_all.deb
apt upgrade -y
```