mwiede / jsch

fork of the popular jsch library
Other
662 stars 124 forks source link

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

Open AlBundy33 opened 1 month ago

AlBundy33 commented 1 month ago
Host *
  ConnectTimeout 5

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

mwiede commented 1 month ago

Yes it seems to be an issue

https://github.com/mwiede/jsch/blob/7b7a2188d538569d4fec58824c4ef66a4405fd11/src/main/java/com/jcraft/jsch/OpenSSHConfig.java#L234-L237