SecureCRT远程连接Ubuntu
发布日期:2021-07-01 05:19:39 浏览次数:2 分类:技术文章

本文共 1086 字,大约阅读时间需要 3 分钟。

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

转载地址:https://onefine.blog.csdn.net/article/details/86650326 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Linux软件包管理之2——yum在线命令
下一篇:Linux软件安装管理之1——rpm命令管理

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年05月02日 02时57分57秒