zoukankan      html  css  js  c++  java
  • ssh 连接失败 sz rz 安装

    sz 下载命令, rz上传命令的安装

    sudo apt-get install lrzsz

    1. 检查sshd服务的状态以及端口是否正常, 如下为正常状态

    sudo netstat -nlp | grep :22

    henry@henry-Latitude-D430:~$ netstat -nlp | grep 22
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -              
    tcp6       0      0 :::22                   :::*                    LISTEN      -        

    如果没有,则先重启ssh服务, 如果没有装ssh服务,则sudo apt-get install ssh

    /etc/init.d/sshd restart       

    2. 检查防火墙是否开启

    查看防火墙状态

    henry@henry-Latitude-D430:~$ sudo ufw status
    Status: active

    偿试关闭防火墙

    henry@henry-Latitude-D430:~$ sudo ufw disable
    Firewall stopped and disabled on system startup
    henry@henry-Latitude-D430:~$ sudo ufw status
    Status: inactive

    开启防火墙命令:

    henry@henry-Latitude-D430:~$ sudo ufw enable
    Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
    Firewall is active and enabled on system startup

    henry@henry-Latitude-D430:~$ sudo ufw status
    Status: active

  • 相关阅读:
    jQuery事件
    php学习注意事项
    取消php上传2M的限制(windows服务器)
    PHP编程值得注意的细节
    jQuery load()方法特殊用法!
    PHP显示乱码和apache内部编码问题的解决
    定制Apache索引样式
    这么长时间也没有人看看我
    加载php5apache2_2.dll失败的处理方法
    WinXP下的ApachePHPMySQL安装和配置
  • 原文地址:https://www.cnblogs.com/henryliublog/p/9900273.html
Copyright © 2011-2022 走看看