Debian12安装指南
下载Debian12
官方网站:
镜像网站:
直接下载地址:
基于Vmware安装Debian12
暂时缺省
配置SSH密钥登录
下载openssh
由于安装的Debian镜像是桌面环境,所以默认是没有安装ssh_server服务的
sudo apt install openssh-server
⁉️如出现下列问题:
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?💡解决方案:
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
上传公钥
scp ./id_rsa.pub oslab@192.168.174.129:/home/oslab/.ssh
配置
cd .ssh
cat id_rsa.pub >> authorized_keys
chmod 600 authorized_keys
chmod 700 ~/.ssh
安装基础网络工具
net-tool
sudo apt install net-tools