VMware Cloud Community
phowarth
Contributor
Contributor
Jump to solution

How to Set the SSH Timeout ESX 3.5 Host Using Putty

How do I set the ssh Timeout on an ESX 3.5 Host so that after I putty into the host it drops the ssh connection after 15 min if the session is idle?

Pete

0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal
Jump to solution

Not sure that is possible with sshd.

But you can do with bash.

Just set an environment varible (in rc.local or in profile):

export TMOUT=900

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
9 Replies
AndreTheGiant
Immortal
Immortal
Jump to solution

Not sure that is possible with sshd.

But you can do with bash.

Just set an environment varible (in rc.local or in profile):

export TMOUT=900

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
Chamon
Commander
Commander
Jump to solution

Is this in seconds I assume?

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

Yes.

This setting will also work for console connection, cause is at session level (not terminal depending).

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
Chamon
Commander
Commander
Jump to solution

what are the different effects for setting this in rc.local as apposed to profile?

How can I view all of the possible settings that can be configured here? And one more question. is it /etc/rc.d/rc.local or /etc/rc.local ?

Message was edited by: Chamon

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

what are the different effects for setting this in rc.local as apposed to profile?

In this case (environment variable) you must add the command in /etc/profile or /rot/.bashrc

In effect rc.local is not a good place for this kind of variable.

For more info you have to read the bash man page.

Or some linux reference.

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
Chamon
Commander
Commander
Jump to solution

Thanks I will do that.

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

You're welcome.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
phowarth
Contributor
Contributor
Jump to solution

Thanks!

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

You're welcome.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos