mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-08-31 05:52:52 +08:00
update 4.PVE制作虚拟机模板.md.
This commit is contained in:
+3
-3
@@ -231,14 +231,14 @@ Successfully imported disk as 'unused0:local-lvm:vm-1000-disk-1'
|
||||
|
||||

|
||||
|
||||
在 Debian 服务器的命令行界面,使用 `nano` 编辑器编辑 ssh 的配置文件,使用以下命令:
|
||||
在 Debian 服务器的命令行界面,使用 `nano` 编辑器编辑 `sshd` 服务的配置文件,使用以下命令:
|
||||
|
||||
```bash
|
||||
## 编辑 ssh 配置文件
|
||||
sudo nano /etc/ssh/sshd_config.d/fox_sshd.conf
|
||||
```
|
||||
|
||||
在 `nano` 编辑器对话框中输入以下内容:
|
||||
在编辑器对话框中输入以下内容,注意命令中间的空格:
|
||||
|
||||
```bash
|
||||
PasswordAuthentication yes
|
||||
@@ -246,7 +246,7 @@ PasswordAuthentication yes
|
||||
PermitEmptyPasswords no
|
||||
```
|
||||
|
||||
`nano` 编辑器保存修改时,按下键盘 `ctrl 和 x` 组合键,再按下 `Y` 键,即可保存。
|
||||
`nano` 编辑器在保存文件修改时,只需按下键盘 `ctrl 和 x` 组合键,再按下键盘 `y` 键,即可保存。
|
||||
|
||||
然后,重启 SSH 服务:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user