zoukankan      html  css  js  c++  java
  • SecureCRT远程连接Ubuntu

    操作环境:SecureCRT 8.5+Ubuntu 18.10

    Ubuntu终端设置:
    step1:sudo apt-get install openssh-server
    step2:vim /etc/ssh/sshd_config

    • 找到#PermitRootLogin prohibit-password在下边添加PermitRootLogin yes
    • 注意要user: root, 不然没有权限。

    step3:service ssh restart 重启ssh服务
    step4:netstat -tlp 确认ssh-server正常工作

    root@onefine-virtual-machine:~# netstat -tlp
    激活Internet连接 (仅服务器)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
    tcp        0      0 localhost:domain        0.0.0.0:*               LISTEN      426/systemd-resolve 
    tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN      3196/sshd           
    tcp        0      0 localhost:ipp           0.0.0.0:*               LISTEN      631/cupsd           
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      3196/sshd           
    tcp6       0      0 ip6-localhost:ipp       [::]:*                  LISTEN      631/cupsd           
    root@onefine-virtual-machine:~# 
    

    step5:ifconfig 查看IP
    注:如果没有ifconfig,安装即可:sudo apt-get install net-tools

    SecureCRT端设置:
    不用任何多余设置,直接new session选择SSH2, 常规操作。

  • 相关阅读:
    POJ 1905 Expanding Rods 木棍膨胀
    [JSOI2007] 文本生成器
    18.09.22模拟赛T2 历史
    [USACO18OPEN] Talent Show
    [国家集训队] 整数的lqp拆分
    [HNOI2008] GT考试
    读入优化效果测试
    Trie图 模板
    manacher算法 详解+模板
    [洛谷P4299] 首都
  • 原文地址:https://www.cnblogs.com/onefine/p/10499374.html
Copyright © 2011-2022 走看看