使用 SharpSSH 的 SCP 客户端时出现错误
我正在使用 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
sshd_config 中有一个 MaxSessions 属性 - 您检查过它的值吗?
There is a MaxSessions attribute in sshd_config - have you checked the value of that?