ubuntu 20.04.6 desk 安装 初始化
ssh
https://blog.csdn.net/wowocpp/article/details/127470332
sudo apt update
sudo apt install openssh-server -y
sudo service ssh status
不用配置 就可以连接
sudo vim /etc/ssh/sshd_config
sudo service ssh restart
sudo service ssh start
sudo service ssh enable
ps -e | grep ssh
ssh username@your_server_ip_address -p port_number
ip地址:
sudo vi /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:version: 2renderer: NetworkManagerethernets:ens33:addresses: [192.168.99.40/24]dhcp4: nooptional: truegateway4: 192.168.99.1nameservers:addresses: [192.168.99.1,8.8.8.8]
sudo netplan apply
注意 根据具体情况 修改 ens33
ifconfig