在阿里云镜像站(https://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/) 上下载对应的Centos7 安装包,有多个版本,这里选择CentOS-7-x86_64-Everything-2207-02.iso
# 查看状态
systemctl status sshd.service
# 开启服务
systemctl start sshd.service
# 重启服务
systemctl restart sshd.service
# 关闭服务
systemctl stop sshd.service
# 开机自启
systemctl enable sshd.service
注:IP使用VirtualBox的IPv4地址
参考:
https://blog.csdn.net/weixin_60817059/article/details/130903152
https://blog.csdn.net/qq_43726042/article/details/105913613
https://blog.csdn.net/qq_43081475/article/details/121036343
https://blog.csdn.net/weixin_47071532/article/details/130047427
https://blog.csdn.net/lssffy/article/details/131417848