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, 常规操作。

  • 相关阅读:
    【Linux 读书笔记】Linux文件的硬连接和符号连接
    Shell参数
    Shellcase语句的例子
    Shellselect
    Shell小程序一个
    SHELL起步
    接昨天的 while
    Shell循环控制
    Shellwhile循环的例子
    Shellfor语句
  • 原文地址:https://www.cnblogs.com/onefine/p/10499374.html
Copyright © 2011-2022 走看看