hyper ubuntu20 网络配置

开启ssh

https://blog.csdn.net/timonium/article/details/115540622

https://www.cnblogs.com/livelab/p/13033175.html

Default Switch

 

网络配置

https://docs.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/user-guide/setup-nat-network

sudo vi /etc/netplan/01-network-manager-all.yaml

network:
  version: 2
  ethernets:
    eth0:
      addresses:
      - 192.168.0.100/24
      gateway4: 192.168.0.1
      nameservers:
        addresses:
        - 8.8.8.8

 配置完成后,输入命令:sudo netplan apply 

关闭防火墙:sudo ufw disable

更新apt原:https://www.jianshu.com/p/eaaa24dd8115

sudo apt install openssh-server

sudo systemctl status ssh

sudo ufw enable

sudo ufw allow ssh

posted @ 2022-01-17 16:18  闻见知行  阅读(179)  评论(0编辑  收藏  举报