trzsz / trzsz-ssh

trzsz-ssh ( tssh ) is an ssh client designed as a drop-in replacement for the openssh client. It aims to provide complete compatibility with openssh, mirroring all its features, while also offering additional useful features. Such as login prompt, batch login, remember password, automated interaction, trzsz, zmodem(rz/sz), udp mode like mosh, etc.
https://trzsz.github.io/ssh
MIT License
1.74k stars 102 forks source link

Error parsing ServerAliveInterval and ServerAliveCountMax #150

Open abakum opened 1 month ago

abakum commented 1 month ago

https://github.com/trzsz/trzsz-ssh/blob/7a1d15b52a4cc400c64f8a77983448ea67c33c43/tssh/login.go#L1094

Please change to err == nil

lonnywong commented 1 month ago

@abakum Thanks. Could you create a PR?

abakum commented 1 month ago

Sorry, my friend, I'm busy

abakum commented 1 month ago

Unfortunately, you cannot disable send keepalive requests in tssh... ServerAliveInterval Sets a timeout interval in seconds after which if no data has been received from the server, ssh(1) will send a message through the encrypted channel to request a response from the server. The default is 0, indicating that these messages will not be sent to the server.

lonnywong commented 1 month ago

Unfortunately, you cannot disable send keepalive requests in tssh...

I want to make it default to keep-alive.

lonnywong commented 3 weeks ago

Unfortunately, you cannot disable send keepalive requests in tssh... ServerAliveInterval Sets a timeout interval in seconds after which if no data has been received from the server, ssh(1) will send a message through the encrypted channel to request a response from the server. The default is 0, indicating that these messages will not be sent to the server.

fixed https://github.com/trzsz/trzsz-ssh/commit/0823d9b0f1a9a367d3d59d18fc7a2fbf3221bc14