【发布时间】:2014-09-06 04:48:53
【问题描述】:
我正在尝试使用 Ant <scp> 将一些文件发送到远程计算机,但得到服务器错误没有响应。
尝试使用详细选项并得到以下响应。
[scp] Authentications that can continue: publickey,keyboard-interactive,password
[scp] Next authentication method: publickey
[scp] Authentications that can continue: keyboard-interactive,password
[scp] Next authentication method: keyboard-interactive
[scp] Authentications that can continue: password
[scp] Next authentication method: password
[scp] Authentication succeeded (password).
[scp] Disconnecting from xx-hostname-xx port 22
[scp] Caught an exception, leaving main loop due to socket closed
代码没有问题,因为它可以与其他主机一起正常工作。问题必须在其他地方。以前有人遇到过这个问题吗?提前致谢。
P.S:我可以使用 putty 从本地连接到远程机器,没有任何问题。我已经在远程机器上安装了openssh。
【问题讨论】: