[SSH] Timeout

Pagina: 1
Acties:
  • 49 views sinds 30-01-2008

  • DiedX
  • Registratie: December 2000
  • Laatst online: 06-05 17:23
Helleuh,

Ik werk enige tijd al met een Linux client (RH9) om vanuit daar naar diverse OpenSSH hosts te gaan.
Daarbij wordt de timeout van SSH wat irritant. Met PuTTY (onder windows) kan je een keepalive packet laten sturen. In SSH connectie timeout uitzetten? staan wat tips, welke niet werken.

Wie kan er voor zorgen dat mijn verbinding niet verbroken wordt?

DiedX supports the Roland™, Sound Blaster™ and Ad Lib™ sound cards


Verwijderd

NOS policy - updated 01/04/03

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
misato [r3boot]$ man ssh_config
...
     KeepAlive
             Specifies whether the system should send TCP keepalive messages
             to the other side.  If they are sent, death of the connection or
             crash of one of the machines will be properly noticed.  This
             option only uses TCP keepalives (as opposed to using ssh level
             keepalives), so takes a long time to notice when the connection
             dies.  As such, you probably want the ProtocolKeepAlives option
             as well.  However, this means that connections will die if the
             route is down temporarily, and some people find it annoying.

             The default is ``yes'' (to send keepalives), and the client will
             notice if the network goes down or the remote host dies.  This is
             important in scripts, and many users want it too.

             To disable keepalives, the value should be set to ``no''.
...
     ProtocolKeepAlives
             Specifies the interval in seconds at which IGNORE packets will be
             sent to the server during idle periods.  Use this option in
             scripts to detect when the network fails.  The argument must be
             an integer.  The default is 0 (disabled), or 300 if the BatchMode
             option is set.

...


Mochten deze 2 opties niet voldoende zijn, beschrijf je probleem dan iets beter (waneer treed er precies een timeout op, zit er een firewall tussen de hosts, welke versies van ssh draai je op alle machines etcetc). We kunnen zo weinig met dit topic, en zelf doe je er ook niet echt wat aan. Had je google en de search al geraadpleegt? Succes :)

Dit topic is gesloten.