Visit Our UNIX and Linux User Community

Operating Systems HP-UX ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes) Post 302363947 by yoda9691 on Wednesday 21st of October 2009 04:47:49 PM
Old 10-21-2009
ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also?
Test Your Knowledge in Computers #628
Difficulty: Easy
In PHP, True !== 1;
True or False?

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

telnet session timeout

hi, we can set something such that if the user has been idle for a while, it will auto disconnect. where to do so? thanks (6 Replies)
Discussion started by: yls177
6 Replies

2. Shell Programming and Scripting

Telnet Session

{ sleep 2 echo "$user" sleep 2 echo "$password" sleep 2 echo " ls" sleep 10 echo "exit" }| telnet $server I have a machine x and i have executed the above script on machine 'x'. i entered the... (6 Replies)
Discussion started by: pathanjalireddy
6 Replies

3. Shell Programming and Scripting

sqlplus session being able to see unix variables session within a script

Hi there. How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly. sqlplus << EOF user1@db1/pass1 BEGIN PACKAGE1.perform_updates($1,$2,$3); END; EOF Thanks in advance, Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies

4. UNIX for Dummies Questions & Answers

Telnet Session to AIX

Hello, I have AIX 5.3 at home connected to netgear router. Port Forwarding has been enabled on the router. Problem is that if I want to telnet, I have to try 2 or 3 times before I can get a logon prompt. It times out for first or second time (Connection to session <IP_Address> failed: Connection... (1 Reply)
Discussion started by: bluebee
1 Replies

5. UNIX for Dummies Questions & Answers

Disconnecting a telnet session

How can I disconnect an existing telnet session? The host is a serial port server with multiple ports. The users login using the host's name and a port, i.e. telnet host01 1235. Thanks. (14 Replies)
Discussion started by: cooldude
14 Replies

6. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

7. HP-UX

hpux telnet session is getting hung after about 15 minutes

Hi All, Our server OS info: HPUX-UNIX>uname -a HP-UX hps B.11.11 U 9000/800 2983362429 unlimited-user license We access our server from Windows m/c through telnet sessions. But for unknown reason any telnet sessions are getting hung after about 15 minutes idle time. Then we close it and... (2 Replies)
Discussion started by: mhbd
2 Replies

8. Solaris

Elegant Solutions to kill telnet/ssh session

We have a generic user account "user1" setup on Solaris 8 that is used by an application. I dont want users to telnet/ssh using this account. Instead if they want to gain access, they must su or sudo to this after logging in with their own ID. My earlier attempts to accomplish this by disabling... (7 Replies)
Discussion started by: boshyd
7 Replies

9. Shell Programming and Scripting

How to break out of hung or waiting telnet session in shell script?

I have to put together telnet instructions for 100s of hosts for verifying basic connectivity and get output in a neat format. Problem- If a telnet is hung with message "Trying .... <hostname" due to firewall or routing issue the commands waits for a very long time before it times out and my... (2 Replies)
Discussion started by: desiphantom
2 Replies
Dancer::Session(3pm)					User Contributed Perl Documentation				      Dancer::Session(3pm)

Dancer::Session - session engine for the Dancer framework DESCRIPTION
This module provides support for server-side sessions for the Dancer web framework. The session is accessible to the user via an abstraction layer implemented by the Dancer::Session class. USAGE
Configuration The session engine must be first enabled in the environment settings, this can be done like the following: In the application code: # enabling the YAML-file-based session engine set session => 'YAML'; Or in config.yml or environments/$env.yml session: "YAML" By default sessions are disabled, you must enable them before using it. If the session engine is disabled, any Dancer::Session call will throw an exception. See "Configuration" in Dancer::Session::Abstract for more configuration options. Route Handlers When enabled, the session engine can be used in a route handler with the keyword session. This keyword allows you to store/retrieve values from the session by name. Storing a value into the session: session foo => 'bar'; Retrieving that value later: my $foo = session 'foo'; You can either look for an existing item in the session storage or modify one. Here is a simple example of two route handlers that implement basic "/login" and "/home" actions using the session engine. post '/login' => sub { # look for params and authenticate the user # ... if ($user) { session user_id => $user->id; } }; get '/home' => sub { # if a user is present in the session, let him go, otherwise redirect to # /login if (not session('user_id')) { redirect '/login'; a }; Of course, you probably don't want to have to duplicate the code to check whether the user is logged in for each route handler; there's an example in the Dancer::Cookbook showing how to use a before filter to check whether the user is logged in before all requests, and redirect to a login page if not. SUPPORTED ENGINES
Dancer has a modular session engine that makes implementing new session backends pretty easy. If you'd like to write your own, feel free to take a look at Dancer::Session::Abstract. The following engines are supported out-of-the-box (shipped with the core Dancer distribution): Dancer::Session::YAML A YAML file-based session backend, pretty convenient for development purposes, but maybe not the best for production needs. Dancer::Session::Simple A very simple session backend, holding all session data in memory. This means that sessions are volatile, and no longer exist when the process exits. This module is likely to be most useful for testing purposes, and of little use for production. Additionally, many more session engines are available from CPAN, including: Dancer::Session::Memcached Session are stored in Memcached servers. This is good for production matters and is a good way to use a fast, distributed session storage. If you may be scaling up to add additional servers later, this will be a good choice. Dancer::Session::Cookie This module implements a session engine for sessions stored entirely inside encrypted cookies (this engine doesn't use a server-side storage). Dancer::Session::Storable This backend stores sessions on disc using Storable, which offers solid performance and reliable serialisation of various data structures. Dancer::Session::MongoDB A backend to store sessions using MongoDB Dancer::Session::KiokuDB A backend to store sessions using KiokuDB Dancer::Session::PSGI Let Plack::Middleware::Session handle sessions; may be useful to share sessions between a Dancer app and other Plack-based apps. DEPENDENCY
Dancer::Session may depend on third-party modules, depending on the session engine used. See the session engine module for details. AUTHORS
This module has been written by Alexis Sukrieh. See the AUTHORS file that comes with this distribution for details. LICENSE
This module is free software and is released under the same terms as Perl itself. SEE ALSO
See Dancer for details about the complete framework. perl v5.14.2 2012-01-27 Dancer::Session(3pm)

Featured Tech Videos

All times are GMT -4. The time now is 07:47 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy