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

ConnectTimeout from ssh-config read as ms instead of seconds? #560

Open
AlBundy33 opened this issue May 17, 2024 · 1 comment
Open

ConnectTimeout from ssh-config read as ms instead of seconds? #560

AlBundy33 opened this issue May 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@AlBundy33
Copy link

Host *
  ConnectTimeout 5

afaik the unit is seconds but it seems that JSch treats the value as milliseconds

@mwiede
Copy link
Owner

mwiede commented May 18, 2024

Yes it seems to be an issue

* if(value!=null && (key.equals("SERVERALIVEINTERVAL") || key.equals("CONNECTTIMEOUT"))){ try
* { int timeout = Integer.parseInt(value); value = Integer.toString(timeout*1000); } catch
* (NumberFormatException e) { } }
*/

@mwiede mwiede added the bug Something isn't working label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants