SSH Auslogzeit überlisten
(Lutz Donnerhacke)
lutz at iks-jena.de
Mon Jan 3 15:42:45 CET 2000
* Johannes Vieweg wrote:
>Wie kann man bei SSH die Timeout ausschalten, bzw. verlängern??
$ man ssh
ConnectionAttempts
Specifies the number of tries (one per second) to
make before falling back to rsh or exiting. The
argument must be an integer. This may be useful in
scripts if the connection sometimes fails.
KeepAlive
Specifies whether the system should send 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. 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" in both the server and the client configura
tion files.
FILES
/etc/ssh/ssh_config
Systemwide configuration file. This file provides
defaults for those values that are not specified in
the user's configuration file, and for those users
who do not have a configuration file. This file
must be world-readable.
$HOME/.ssh/config
This is the per-user configuration file. The for
mat of this file is described above. This file is
used by the ssh client. This file does not usually
contain any sensitive information, but the recom
mended permissions are read/write for the user, and
not accessible by others.
$ man sshd
IdleTimeout time
Sets idle timeout limit to time in seconds (s or
nothing after number), in minutes (m), in hours
(h), in days (d), or in weeks (w). If the connec
tion have been idle (all channels) for that long
time the child process is killed with SIGHUP, and
connection is closed down.
KeepAlive
Specifies whether the system should send 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. However, this
means that connections will die if the route is
down temporarily, and some people find it annoying.
On the other hand, if keepalives are not send, ses
sions may hang indefinitely on the server, leaving
"ghost" users and consuming server resources.
The default is "yes" (to send keepalives), and the
server will notice if the network goes down or the
client host reboots. This avoids infinitely hang
ing sessions.
To disable keepalives, the value should be set to
"no" in both the server and the client configura
tion files.
LoginGraceTime
The server disconnects after this time if the user
has not successfully logged in. If the value is 0,
there is no time limit. The default is 600
FILES
/etc/ssh/sshd_config
Contains configuration data for sshd. This file
should be writable by root only, but it is recom
mended (though not necessary) that it be world-
readable.