Sunday, July 19, 2009

Fix SSH timeout for jailbreak iPhone

Login iPhone and edit /etc/ssh/sshd_config and change the line

from

#ClientAliveInterval 0

to

ClientAliveInterval 60

According to man sshd_config, this line,

Sets a timeout interval in seconds after which if no data has been received from the client, sshd(8) will send a message through the encrypted channel to request a response from the client. The default is 0, indicating that these messages will not be sent to the client. This option applies to protocol version 2 only.

Don’t forget to restart sshd on the iPhone after you save the file.

1 comment:

XVar said...

Thank you! This has been annoying me for ages, finally got round to fixing it thanks to this post :)