[GH-ISSUE #660] 在ftps中打开Linux系统下的index.html文件出错 #3457

Closed
opened 2026-03-13 11:32:47 +03:00 by kerem · 2 comments
Owner

Originally created by @youli42 on GitHub (May 6, 2024).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/660

Originally assigned to: @VShawn on GitHub.

具体使用情况:

通过远程 ssh 连接服务器的时候,勾选了,同时打开 sftp 文件传输,然后我再访问其中的文件时出现问题
我是通过内网穿透,可能有网络不稳定的因素,具体错误代码如下:

Environment

Component Version
1Remote(Store) 1.0.0-beta.07(Built at: 2024-02-08T08:17:11.035+08:00)(Microsoft store)
.NET Framework .NET Framework 4.8
CLR 4.0.30319.42000
OS Windows 10 Pro for Workstations 64-bits 10.0.22631.0 (2009) build 22631

Error Info

An established connection was aborted by the server.

Stack Trace

   ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   ᅯᅳ Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
   ᅯᅳ Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session session)
   ᅯᅳ Renci.SshNet.ClientAuthentication.TryAuthenticate(ISession session, AuthenticationState authenticationState, String[] allowedAuthenticationMethods, SshAuthenticationException& authenticationException)
   ᅯᅳ Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
   ᅯᅳ Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory)
   ᅯᅳ Renci.SshNet.Session.Connect()
   ᅯᅳ Renci.SshNet.BaseClient.CreateAndConnectSession()
   ᅯᅳ Renci.SshNet.BaseClient.Connect()
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.InitClient() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 320
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.Clone() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 70
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmissionController.TransmitTask.<StartTransmitAsync>d__62.MoveNext() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmissionController\TransmitTask.cs:￐￐챼 380
--- ᅭ�ᄋ꾜↓ᄈᆪ샤￉ᅬᅭ쾌퀴ᅢᅱ￐ᄊ￑ᅰᄏ쥬￙샤ᅣ뢔ᄇ ---
   ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   ᅯᅳ System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   ᅯᅳ System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Recent Log

[T:001][14:40:34.889]	`Fatal`		[(TryCatchWhen:0)]	
> Renci.SshNet.Common.SshConnectionException: An established connection was aborted by the server.
   ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   ᅯᅳ Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
   ᅯᅳ Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session session)
   ᅯᅳ Renci.SshNet.ClientAuthentication.TryAuthenticate(ISession session, AuthenticationState authenticationState, String[] allowedAuthenticationMethods, SshAuthenticationException& authenticationException)
   ᅯᅳ Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
   ᅯᅳ Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory)
   ᅯᅳ Renci.SshNet.Session.Connect()
   ᅯᅳ Renci.SshNet.BaseClient.CreateAndConnectSession()
   ᅯᅳ Renci.SshNet.BaseClient.Connect()
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.InitClient() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 320
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.Clone() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 70
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmissionController.TransmitTask.<StartTransmitAsync>d__62.MoveNext() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmissionController\TransmitTask.cs:￐￐챼 380
--- ᅭ�ᄋ꾜↓ᄈᆪ샤￉ᅬᅭ쾌퀴ᅢᅱ￐ᄊ￑ᅰᄏ쥬￙샤ᅣ뢔ᄇ ---
   ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   ᅯᅳ System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   ᅯᅳ System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
> StackTrace:    ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   ᅯᅳ Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
   ᅯᅳ Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session session)
   ᅯᅳ Renci.SshNet.ClientAuthentication.TryAuthenticate(ISession session, AuthenticationState authenticationState, String[] allowedAuthenticationMethods, SshAuthenticationException& authenticationException)
   ᅯᅳ Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session)
   ᅯᅳ Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory)
   ᅯᅳ Renci.SshNet.Session.Connect()
   ᅯᅳ Renci.SshNet.BaseClient.CreateAndConnectSession()
   ᅯᅳ Renci.SshNet.BaseClient.Connect()
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.InitClient() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 320
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.Clone() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 70
   ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmissionController.TransmitTask.<StartTransmitAsync>d__62.MoveNext() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmissionController\TransmitTask.cs:￐￐챼 380
--- ᅭ�ᄋ꾜↓ᄈᆪ샤￉ᅬᅭ쾌퀴ᅢᅱ￐ᄊ￑ᅰᄏ쥬￙샤ᅣ뢔ᄇ ---
   ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   ᅯᅳ System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   ᅯᅳ System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Originally created by @youli42 on GitHub (May 6, 2024). Original GitHub issue: https://github.com/1Remote/1Remote/issues/660 Originally assigned to: @VShawn on GitHub. 具体使用情况: 通过远程 ssh 连接服务器的时候,勾选了,同时打开 sftp 文件传输,然后我再访问其中的文件时出现问题 我是通过内网穿透,可能有网络不稳定的因素,具体错误代码如下: <details> ## Environment | Component | Version | |:------------------|:--------------------------------------| |1Remote(Store) | `1.0.0-beta.07(Built at: 2024-02-08T08:17:11.035+08:00)`(Microsoft store)| |.NET Framework | `.NET Framework 4.8` | |CLR | `4.0.30319.42000` | |OS | `Windows 10 Pro for Workstations 64-bits 10.0.22631.0 (2009) build 22631` | ## Error Info An established connection was aborted by the server. ## Stack Trace ``` ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ᅯᅳ Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) ᅯᅳ Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session session) ᅯᅳ Renci.SshNet.ClientAuthentication.TryAuthenticate(ISession session, AuthenticationState authenticationState, String[] allowedAuthenticationMethods, SshAuthenticationException& authenticationException) ᅯᅳ Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session) ᅯᅳ Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory) ᅯᅳ Renci.SshNet.Session.Connect() ᅯᅳ Renci.SshNet.BaseClient.CreateAndConnectSession() ᅯᅳ Renci.SshNet.BaseClient.Connect() ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.InitClient() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 320 ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.Clone() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 70 ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmissionController.TransmitTask.<StartTransmitAsync>d__62.MoveNext() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmissionController\TransmitTask.cs:￐￐챼 380 --- ᅭ�ᄋ꾜↓ᄈᆪ샤￉ᅬᅭ쾌퀴ᅢᅱ￐ᄊ￑ᅰᄏ쥬￙샤ᅣ뢔ᄇ --- ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ᅯᅳ System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) ᅯᅳ System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ``` ## Recent Log ``` [T:001][14:40:34.889] `Fatal` [(TryCatchWhen:0)] > Renci.SshNet.Common.SshConnectionException: An established connection was aborted by the server. ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ᅯᅳ Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) ᅯᅳ Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session session) ᅯᅳ Renci.SshNet.ClientAuthentication.TryAuthenticate(ISession session, AuthenticationState authenticationState, String[] allowedAuthenticationMethods, SshAuthenticationException& authenticationException) ᅯᅳ Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session) ᅯᅳ Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory) ᅯᅳ Renci.SshNet.Session.Connect() ᅯᅳ Renci.SshNet.BaseClient.CreateAndConnectSession() ᅯᅳ Renci.SshNet.BaseClient.Connect() ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.InitClient() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 320 ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.Clone() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 70 ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmissionController.TransmitTask.<StartTransmitAsync>d__62.MoveNext() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmissionController\TransmitTask.cs:￐￐챼 380 --- ᅭ�ᄋ꾜↓ᄈᆪ샤￉ᅬᅭ쾌퀴ᅢᅱ￐ᄊ￑ᅰᄏ쥬￙샤ᅣ뢔ᄇ --- ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ᅯᅳ System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) ᅯᅳ System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) > StackTrace: ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ᅯᅳ Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout) ᅯᅳ Renci.SshNet.PasswordAuthenticationMethod.Authenticate(Session session) ᅯᅳ Renci.SshNet.ClientAuthentication.TryAuthenticate(ISession session, AuthenticationState authenticationState, String[] allowedAuthenticationMethods, SshAuthenticationException& authenticationException) ᅯᅳ Renci.SshNet.ClientAuthentication.Authenticate(IConnectionInfoInternal connectionInfo, ISession session) ᅯᅳ Renci.SshNet.ConnectionInfo.Authenticate(ISession session, IServiceFactory serviceFactory) ᅯᅳ Renci.SshNet.Session.Connect() ᅯᅳ Renci.SshNet.BaseClient.CreateAndConnectSession() ᅯᅳ Renci.SshNet.BaseClient.Connect() ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.InitClient() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 320 ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmitterSFtp.Clone() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmitterSFtp.cs:￐￐챼 70 ᅯᅳ _1RM.Model.Protocol.FileTransmit.Transmitters.TransmissionController.TransmitTask.<StartTransmitAsync>d__62.MoveNext() ᅫ퀴ᅢ C:\DemoProject\1Remote\Ui\Model\Protocol\FileTransmit\Transmitters\TransmissionController\TransmitTask.cs:￐￐챼 380 --- ᅭ�ᄋ꾜↓ᄈᆪ샤￉ᅬᅭ쾌퀴ᅢᅱ￐ᄊ￑ᅰᄏ쥬￙샤ᅣ뢔ᄇ --- ᅯᅳ System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ᅯᅳ System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) ᅯᅳ System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) ``` </details>
kerem 2026-03-13 11:32:47 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@VShawn commented on GitHub (May 6, 2024):

感觉像是网络中断了

<!-- gh-comment-id:2095837801 --> @VShawn commented on GitHub (May 6, 2024): 感觉像是网络中断了
Author
Owner

@VShawn commented on GitHub (May 9, 2024):

检查确认是打开连接的时候就被服务器拒绝了,客户端没法解决这个,我后续会增加三次重试以尽量避免吧。

<!-- gh-comment-id:2102114637 --> @VShawn commented on GitHub (May 9, 2024): 检查确认是打开连接的时候就被服务器拒绝了,客户端没法解决这个,我后续会增加三次重试以尽量避免吧。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/1Remote#3457
No description provided.