使用 SharpSSH 的 SCP 客户端时出现错误

发布于 2024-07-14 23:27:25 字数 455 浏览 4 评论 0原文

我正在使用 SharpSSH (http://sharpssh2.codeplex.com/) 从 Windows 盒子发送文件(使用 C#)到 Linux 盒子。 我使用 Sftp 类创建目录(mkdir 命令)并使用 Sftp.put 命令将文件传输到 Linux 计算机。

当并发用户数量约为 30 或更多时,连接将被丢弃,并且 mkdir 和 SFTP.put 命令将失败。

这是否与重新配置 sshd_config 参数(在 Linux 机器上)以允许更多连接有关,或者我是否必须在进行 scp/sftp 调用来传输文件的 Windows 客户端上进行一些调整?

或者我是否使用了不可靠的 SSH 客户端 (SharpSSH),应该寻找替代解决方案?

提前致谢

I am using SharpSSH (http://sharpssh2.codeplex.com/) to send files from a windows box(using C#) to a linux box. I use the Sftp class to create directories(mkdir command) and Sftp.put command to transfer files over to the Linux machine.

When the number of concurrent users is large about 30 or more then the connections being to drop and the mkdir and SFTP.put commands being to fail.

Is this something to do with reconfiguring the sshd_config params (on the linux box) to allow more connections, or do I have to make some adjustments on the Windows Client which is making the scp/sftp calls to transfer files?

Or am I using a unreliable SSH client (SharpSSH) and should look out for alternative solutions?

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冬天旳寂寞 2024-07-21 23:27:26

sshd_config 中有一个 MaxSessions 属性 - 您检查过它的值吗?

There is a MaxSessions attribute in sshd_config - have you checked the value of that?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文