update 4.PVE制作虚拟机模板.md.

This commit is contained in:
秋刀狐狸
2022-08-05 15:28:56 +00:00
committed by Gitee
parent 5b073b068e
commit be7186282b
+2 -4
View File
@@ -231,7 +231,7 @@ Successfully imported disk as 'unused0:local-lvm:vm-1000-disk-1'
![登录Debian操作系统](img/Template/os_login.png)
在 Debian 服务器的命令行界面,打开 SSH 服务的密码登录功能
在 Debian 服务器的命令行界面,使用 `nano` 编辑器编辑 ssh 的配置文件,使用以下命令
```bash
## 编辑 ssh 配置文件
@@ -246,7 +246,7 @@ PasswordAuthentication yes
PermitEmptyPasswords no
```
按下键盘 `ctrl 和 x` 组合键,再按下 `Y` 键,即可保存。
`nano` 编辑器保存修改时,按下键盘 `ctrl 和 x` 组合键,再按下 `Y` 键,即可保存。
然后,重启 SSH 服务:
@@ -293,5 +293,3 @@ deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
#deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
```
按下键盘 `ctrl 和 x` 组合键,再按下 `Y` 键,即可保存。