SecureCRT连ubuntu

两台笔记本,一台windows,一台ubuntu,接两根网线,ip在同一网段,win通过securecrt访问ubu不通  

1.怀疑是ubu防火墙的问题,关了防火墙

查看:

systemctl status ufw

 如果显示开启,则关闭

systemctl stop ufw

systemctl disable ufw

 查看:

systemctl status apparmor

若打开,使用如下命令关闭:

systemctl stop apparmor

systemctl disable apparmor

update-rc.d -f apparmor remove

结论:关闭防火墙仍然不行

2. 安装ssh server

ps | grep ssh 查看SSH服务是否存在

apt install openssh-server  安装服务

安装完成后可以访问

原文地址:https://www.cnblogs.com/xiangyu5945/p/11057211.html