Commits


simplify timeout handling and accept 0 to keep the tunnel open


kill unused variable


don't hide the error message


kill unused variable


initialize timeout before was a global variable...


move usage() near main


improve manpage and sync usage


retry to connect on failure instead of waiting 5 seconds each time, wait one second and retry often.


s/ssh_tunnel_flag/ssh_tflag


accept an optional host in -B improve the parsing of -B and do so one time only in main instead that every time we connect_to_ssh().


fmt


reset ssh_pid if ssh dies


cast time_t to long long (some platform goes brrrr) and fix format string


get rid of unused variables


fmt