Debian虚拟机可通过以下方式远程连接:
SSH连接
sudo apt update && sudo apt install openssh-server。sudo systemctl enable ssh && sudo systemctl start ssh。ip addr或ifconfig。ssh username@虚拟机IP -p 22(默认端口22)。VNC连接
sudo apt install tightvncserver。vncserver :1(显示编号1对应端口5901)。IP:5901)。远程桌面(RDP)
sudo apt install xrdp。sudo systemctl enable xrdp && sudo systemctl start xrdp。注意:
/etc/ssh/sshd_config)调整SSH端口或禁用密码登录。