目錄個人名片:
對人間的熱愛與歌頌,可抵歲月冗長??
Github???????:念舒_C.ying
CSDN主頁??:念舒_C.ying
個人博客?? :念舒_C.ying
- 1 開啟root權限登陸
- 2 網卡配置
1 開啟root權限登陸
#修改root密碼
sudo passwd root
#安裝ssh
apt-get install ssh
apt-get install openssh-server
apt-get install openssh-client
#開啟root登錄
sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
#開啟密碼驗證
sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
#重啟ssh服務
service sshd restart
2 網卡配置
vim /etc/netplan/01-network-manager-all.yaml
ethernets:
ens33: #網卡名稱
dhcp4: no
addresses: [192.168.2.123/24] #靜態IP及掩碼
optional: true
gateway4: 192.168.2.1 #網關
nameservers:
addresses: [202.100.64.68] #DNS
#重啟網路
netplan apply
期待下次的分享,別忘了三連支持博主呀~
我是 念舒_C.ying ,期待你的關注~??????
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/535947.html
標籤:Linux
