ssh root@127.0.0.1 Connection refused

开启本地apache 服务

使用 ssh root@127.0.0.1

ssh: connect to host 127.0.0.1 port 22: Connection refused

这个错误一般是因为我们SSH 配置问题导致的,
/private/etc/ssh/sshd_config 中有一个ListenAddress 0.0.0.0 打开,这样才可以连接到本地

上一篇:springboot使用cache出现java.net.ConnectException: Connection refused: connect


下一篇:org.apache.http.conn.HttpHostConnectException: Connection to refused