美文网首页
ssh 的 安装|卸载|启动|停止

ssh 的 安装|卸载|启动|停止

作者: 地上最萌程序兔 | 来源:发表于2016-11-21 16:59 被阅读0次

    安装

    1、安装openssh-server:apt-get install openssh-server

    2、安装openssh-client:apt-get install openssh-client

    3、启动服务:sudo /etc/init.d/ssh start 

    4、启动后,查看服务是否正确启动: ps -e|grep ssh

    5、确认ssh-server已经正常工作: netstat -tlp

    卸载

    1、首先要停掉SSH服务:sudo stop ssh

    2、卸载openssh-server:apt-get remove openssh-server

    3、卸载openssh-client: apt-get remove openssh-server

    相关文章

      网友评论

          本文标题:ssh 的 安装|卸载|启动|停止

          本文链接:https://www.haomeiwen.com/subject/hykdpttx.html