如何设置 WinSCP 将文件传输到远程 ABCI 服务器

如何设置 WinSCP 将文件传输到远程 ABCI 服务器

您好,我正在尝试连接到 ABCI 系统用户环境,但无法执行 scp 来挽救我的生命。我尝试了两种方法;1) 使用适用于 Windows 的 unbuntu linux bash 命令(您必须从 Windows 商店安装的应用程序)。第二种方法是使用 WinSCP 和 Putty。我已经生成了一个公钥并加载到 ABCI 系统上。我可以通过隧道进入服务器并正确登录和查看文件。但是当我尝试将 zip 文件上传到服务器时,我被拒绝访问。有人能帮我正确设置 WinSCP 以通过隧道进入服务器吗?

以下是我掌握的信息

对于隧道 ssh

local port: 11022
remote host and port: es.abci.local:22
remote port: 22 

对于会话

hostname: as.abci.ai

在 Putty 中,这一切都已设置完毕,并且运行正常。我按照以下说明操作https://portal.abci.ai/docs/en/02/ 但我仍然无法将文件 scp 到本地文件夹中,我该怎么做?感谢您对此提供的帮助。

哦,我知道对于 putty scp 我需要用这个来代替典型的 scp

pscp -scp -P 110022 myFile.zip myusername@localhost:/place to copy to/

我找到了如何从 WinSCP 获取日志,这些是日志输出

2019-05-21 14:06:54.720 Server offered these authentication methods: publickey
. 2019-05-21 14:06:54.720 Offered public key
! 2019-05-21 14:06:54.738 Server refused our key
. 2019-05-21 14:06:54.782 Server refused our key
. 2019-05-21 14:06:54.782 Server offered these authentication methods: publickey
. 2019-05-21 14:06:54.902 [Tunnel] Closing connection.
. 2019-05-21 14:06:54.902 [Tunnel] Sending special code: 12
. 2019-05-21 14:06:54.902 [Tunnel] Sent EOF message
. 2019-05-21 14:06:54.902 Disconnected: No supported authentication methods available (server sent: publickey)
* 2019-05-21 14:06:54.966 (EFatal) Disconnected: No supported authentication methods available (server sent: publickey)
* 2019-05-21 14:06:54.967 Authentication log (see session log for details):
* 2019-05-21 14:06:54.967 Using username "abc10808va".
* 2019-05-21 14:06:54.967 Server refused our key.
* 2019-05-21 14:06:54.967 
* 2019-05-21 14:06:54.967 Authentication failed.

答案1

我找到了答案,我反复尝试更改 WinSCP 上的设置,非常感谢大家的帮助。我将描述我如何设置一切。

  1. 使用 putty gen 制作一个公钥/私钥。
  2. 在 ABCI 网页上加载
  3. 在WinSCP中设置信息。
  4. 主机名:es.abc1.local:22,端口号为 11022
  5. 提前设置进入连接->隧道
  6. 主机名:as.abci.ai;端口号 22;本地隧道端口 11022
  7. 从 puttygen 添加你的私钥

然后你就一切就绪了。

相关内容