ssh localhost 返回间歇性不可预测的行为

ssh localhost 返回间歇性不可预测的行为

我多次运行以下命令。

ssh -vvv localhost 'echo hello'

但是,它会返回不可预测的结果。

有时效果非常好。有时,我收到以下错误。

2020-08-31 00:30:08  debug(1) pid=10607 Connecting to localhost [127.0.0.1] port 22 address family IPv4.
2020-08-31 00:30:08  debug(2) pid=10607 HPN: is disable. Not setting SO_RCVBUF.
2020-08-31 00:30:08  debug(2) category(Network)  pid=10607 fd 3 setting O_NONBLOCK
2020-08-31 00:30:08  debug(1) pid=10607 connect to address 127.0.0.1 port 22: Connection refused
2020-08-31 00:30:08  debug(1) pid=10607 ssh_connect: Skipping non-IPV4 address, because addressFamily is configured for IPV4 only.
Failed to connect to host localhost port 22: Connection refused

任何帮助/解释将不胜感激。提前致谢。

相关内容