参考 https://maofun.com/583.html
注意点:
- 挂载
mount /dev/sdb1 /mnt
-
更改秘钥authorized_keys
现在应该更改root下的那个:
vim /root/.ssh/authorized_keys
同时更改sshd的几个配置:
vim /etc/ssh/sshd_config
PasswordAuthentication yes
PermitRootLogin yes
参考 https://maofun.com/583.html
注意点:
mount /dev/sdb1 /mnt
更改秘钥authorized_keys
现在应该更改root下的那个:
vim /root/.ssh/authorized_keys
同时更改sshd的几个配置:
vim /etc/ssh/sshd_config
PasswordAuthentication yes
PermitRootLogin yes