Loading

shell工具连接linux时的报错问题

问题描述

在使用shell工具连接linux时报以下错误

SSH   !  Agent auth selected, but no running agent is detected
SSH   !  Agent auth selected, but no running agent is detected

解决方法

方法1

#首先使用ping方法查看是否在同一网段
ping xxx.xxx.xx.x

方法2

#安装[openssh](默认一般不需要安装,一般都有,)
sudo apt install openssh-server -y
#启动SSH服务
sudo /etc/init.d/ssh start
#验证服务是否开启
ps -e | [grep] ssh

方法3 

查看防火墙是否关闭

posted @ 2024-03-04 11:10  小马窝  阅读(1867)  评论(0)    收藏  举报