国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Install and enable ssh on Ubuntu 2204 LTS

2023-08-02 15:50 作者:Jinniq  | 我要投稿

By default, after you install the Ubuntu system, the system does not allow remote access through SSH, you need to install OpenSSH and enable it.

The installation method is very simple, you need to install and enable SSH as root or an account with sudo privileges according to the following steps.


update ubuntu

sudo apt update && sudo apt upgrade -y

install ssh(openssh)

# intall openssh server
sudo apt install openssh-server -y

# start openssh server
sudo systemctl enable --now ssh

# check openssh state
# press 'q' to return terminal
sudo systemctl status ssh

# another way check openssh state
sudo ss -lt

# close openssh
sudo systemctl disable ssh --now

# start openssh
sudo systemctl enable ssh --now

# uninstall openssh
sudo apt autoremove openssh-server -y


ubuntu firewall?settings

# check ubuntu firewall states
sudo ufw status

# maybe ufw status is inactive
# active firewall
sudo ufw enable

# firewall allow ssh
sudo ufw allow ssh

# allow ssh use other ports
sudo ufw allow 7722/tcp

# allow ssh use ports from 7100 to 7200
sudo ufw allow 7100:7200/tcp


Install and enable ssh on Ubuntu 2204 LTS的評論 (共 條)

分享到微博請遵守國家法律
彰化市| 胶南市| 阿克苏市| 张家川| 罗定市| 磐石市| 沙湾县| 锡林郭勒盟| 昌宁县| 峨边| 扎兰屯市| 合川市| 浦北县| 衢州市| 花垣县| 柳河县| 宝应县| 南阳市| 桂平市| 胶州市| 樟树市| 龙山县| 海门市| 福清市| 台山市| 汕尾市| 宜城市| 合川市| 宜都市| 团风县| 齐河县| 桃源县| 连平县| 柳江县| 东安县| 琼海市| 越西县| 延寿县| 五家渠市| 齐河县| 漾濞|