最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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的評論 (共 條)

分享到微博請遵守國家法律
诏安县| 金坛市| 那曲县| 自治县| 白朗县| 永善县| 仪陇县| 东莞市| 格尔木市| 聂拉木县| 重庆市| 阜新市| 宜君县| 北海市| 彭泽县| 诸暨市| 香港 | 镇雄县| 宁南县| 临邑县| 闻喜县| 乐陵市| 化德县| 辽阳市| 泰和县| 南和县| 宁安市| 罗平县| 长岛县| 夏河县| 绍兴市| 松江区| 吴旗县| 青岛市| 南华县| 乌拉特中旗| 乾安县| 且末县| 白城市| 新乐市| 富民县|