Solved

How do I remove the timeout from a telnet session into my solaris box?

Posted on 1998-12-30
8
708 Views
Last Modified: 2013-12-16
When I telnet into my solaris box, if I just leave the telnet session idle for a while, it will disconnect. How can I remove that timeout? It takes too much time to reconnect, and I have to administer the server all day long. I think it's something on the solaris box, but it might be something else, I don't know.
0
Comment
Question by:taotree
8 Comments
 
LVL 7

Expert Comment

by:HalldorG
ID: 1812610
Depends on your shell, check the manpage for the shell you
are using
0
 

Author Comment

by:taotree
ID: 1812611
I just searched through the man page on csh and it doesn't talk anything about timeout. I thought it would be something with either ttymon or login, or getty, or something like that having a timeout, but I can't seem to figure out how to change it.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1812612
how do you telnet in?
0
 

Author Comment

by:taotree
ID: 1812613
I am running linux on my workstation and I collocate a Solaris 2.51 box at an ISP accessible over the Internet. I just run:
telnet domain.name
to telnet in to the server. Currently my connection to the Internet is a DSL line--it would time out whether it was via modem dialup to the internet or the DSL line I just got in.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 7

Expert Comment

by:HalldorG
ID: 1812614
csh has parameter called Autologout set it to 0 and it will
not log you out.  The default value is 60 secs
0
 

Author Comment

by:taotree
ID: 1812615
Okay... I tried doing:
set Autologout=0
set autologout=0
setenv AUTOLOGOUT 0

It still didn't work. It still timed out. Any other ideas?
0
 
LVL 1

Accepted Solution

by:
forrestc earned 250 total points
ID: 1812616
Maybe the best way to approach this is to have you figure out what is getting set.  Type the following commands:

   set
   setenv

Each should (depending on your shell) give you a list of the environment variables which are set.

If you find an appropriate value, you can type:

   unset <value>

or, more specifically:

   unset autologout

If this doesn't work, let us know what shell you are using.   If you're not sure, type the following command:

   egrep '^yourusername:' /etc/passwd

You should get a line like:

forrestc:x:119:40:Forrest W. Christian:/home/forrestc:/bin/tcsh

The /bin/tcsh in this example is my shell.

0
 

Author Comment

by:taotree
ID: 1812617
Thank you very much for your help. I already mentioned I think that I was using the tcsh shell on Solaris. We have since, though, moved to Linux and there doesn't seem to be an auto time out now on the shells (bash) so I no longer need to get it figured out.

Thanks anyway!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now