SecureCRT远程连接Ubuntu

版权声明:本文为 [onefine] 原创文章,转载请注明出处。 https://blog.csdn.net/jiduochou963/article/details/86650326

操作环境: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

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

猜你喜欢

转载自blog.csdn.net/jiduochou963/article/details/86650326