Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto reconnection #40

Open
martinlindhe opened this issue Dec 4, 2021 · 0 comments
Open

Auto reconnection #40

martinlindhe opened this issue Dec 4, 2021 · 0 comments

Comments

@martinlindhe
Copy link

martinlindhe commented Dec 4, 2021

Hi, I'm using yasfw to connect to a FreeBSD server.
It works correctly but the server drops the connection after a while.

Would it be possible for yasfw to support auto-reconnection?

openssh server: OpenSSH_8.8p1, OpenSSL 1.1.1l 24 Aug 2021

sshd config includes:

ClientAliveInterval 30

client output:

~/dev ❯ .\yasfw.exe -u root -m Y -s 192.168.254.130
Dec 04 11:48:05.337 INFO initializing, dokan_driver_version: 400, dokan_version: 151
Dec 04 11:48:05.359 INFO connection established, server_public_key: 01:91:F9:82:11:43:65:8B:4F:FC:53:11:99:7D:6F:D2:E9:D4:71:1B:3A:5F:FA:5B:0D:41:65:B6:D9:FB:DA:6E
Password:
Dec 04 11:48:08.004 INFO keyboard interactive authentication succeeded
Dec 04 11:48:08.109 INFO mounted
op: GetFileInformation
 process_id: 13424
  object_id: 2348002607232
   path: /usr/local
    Dec 04 12:00:03.428 ERRO error occurred when communicating with the server, error: SshError { error_type: Fatal, error_msg: "Socket error: disconnected", sftp_error_code: Some(Ok) }
    Dec 04 12:00:03.428 WARN error occurred but SFTP error code is OK
    Dec 04 12:00:03.428 ERRO error occurred when communicating with the server, error: SshError { error_type: Fatal, error_msg: "Socket error: disconnected", sftp_error_code: Some(Failure) }
    Dec 04 12:00:03.428 ERRO error occurred when communicating with the server, error: SshError { error_type: Fatal, error_msg: "Socket error: disconnected", sftp_error_code: Some(Failure) }
    Dec 04 12:00:03.429 ERRO error occurred when communicating with the server, error: SshError { error_type: Fatal, error_msg: "Socket error: disconnected", sftp_error_code: Some(Failure) }
 process_id: 6480
  object_id: 2348002319984
   path: /usr/local
    Dec 04 12:00:20.869 ERRO error occurred when communicating with the server, error: SshError { error_type: Fatal, error_msg: "Socket error: disconnected", sftp_error_code: Some(Failure) }
  object_id: 2348031783600
   path: /usr/local
    Dec 04 12:00:20.870 ERRO error occurred when communicating with the server, error: SshError { error_type: Fatal, error_msg: "Socket error: disconnected", sftp_error_code: Some(Failure) }
  object_id: 2348002603552
   path: /usr/local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant