1.安装SSH
如果你用的是redhat,fedora,centos等系列linux发行版,那么敲入以下命令:
sudoyuminstallsshd或
sudoyuminstallopenssh-server(由osc网友火耳提供)
如果你使用的是debian,ubuntu,linuxmint等系列的linux发行版,那么敲入以下命令:
sudoapt-getinstallsshd或
sudoapt-getinstallopenssh-server(由osc网友火耳提供)
然后按照提示,安装就好了。
2.开启ssh服务
servicesshdstart
3.卸载服务
如果你用的是redhat,fedora,centos等系列linux发行版,那么敲入以下命令:
yumremovesshd
如果你使用的是debian,ubuntu,linuxmint等系列的linux发行版,那么敲入以下命令:
sudoapt-get–purgeremovesshd
原文链接:https://blog.csdn.net/eddy23513/article/details/81366507