在Ubuntu系统中,SSH(Secure Shell)通常已经预装。如果你需要安装或卸载SSH,请按照以下步骤操作:
打开终端(快捷键:Ctrl + Alt + T)。
更新软件包列表:
sudo apt update
sudo apt install openssh-server
sudo systemctl start ssh
sudo systemctl enable ssh
sudo systemctl status ssh
现在,你的Ubuntu系统已经成功安装了SSH服务器,其他设备可以通过SSH连接到这台计算机。
打开终端(快捷键:Ctrl + Alt + T)。
停止SSH服务:
sudo systemctl stop ssh
sudo systemctl disable ssh
sudo apt remove --purge openssh-server
sudo apt autoremove
现在,你的Ubuntu系统已经成功卸载了SSH服务器。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:ubuntu怎么卸载ssh