Linux安裝、啟動、解除安裝ssh
阿新 • 來源:網路 • 發佈:2021-02-17
1.安裝ssh
如果你用的是redhat,fedora,centos等系列linux發行版,那麼敲入以下命令:
sudo yum install sshd 或
sudo yum install openssh-server(由osc網友 火耳提供)
如果你使用的是debian,ubuntu,linux mint等系列的linux發行版,那麼敲入以下命令:
sudo apt-get install sshd 或
sudo apt-get install openssh-server(由osc網友 火耳提供)
然後按照提示,安裝就好了。

2.啟動ssh
service sshd start

3.解除安裝ssh
如果你用的是redhat,fedora,centos等系列linux發行版,那麼敲入以下命令:
yum remove sshd
如果你使用的是debian,ubuntu,linux mint等系列的linux發行版,那麼敲入以下命令:
sudo apt-get –purge remove sshd

原文連結:https://blog.csdn.net/eddy23513/article/details/81366507
