zoukankan      html  css  js  c++  java
  • secureCRT连接linux系统

    linux和secureCRT利用ssh协议22端口进行远程连接的

    连接如果没有成功,请检查远程主机的端口和ssh是否开启

    一、检查看SSH服务是否开启

      

      当然有的linux系统使用的命令是/etc/init.d/sshd statusservice sshd status

    二、开启SSH

      /etc/init.d/ssh start service ssh start

    三、关闭防火墙

    sudo ufw disable                                          //关闭防火墙
    sudo ufw status                                           //查看防火墙状态
    sudo ufw allow 20                                         //允许外部访问20端口
    

    四、修改SSH配置文件

      在/etc/ssh下有一个sshd_config 文件

     //打开这些注释
       Port 22 
       Protocol 2 
       PermitRootLogin yes 
       PasswordAuthentication yes
    

    五、查看虚拟机网络适配器

      

      

  • 相关阅读:
    js中replace的正则替换
    ios沙盒路径
    Android开源框架
    小知识点
    __NSCFConstantString && __NSPlaceholderDictionary
    iq 格式分析
    C 函数
    Xcode报错
    XMPP Server
    H5网站借鉴
  • 原文地址:https://www.cnblogs.com/yuanqiangfei/p/8084570.html
Copyright © 2011-2022 走看看