Networking Forums

Networking Forums > Computer Networking > Linux Networking > Clearing a "dead" login session?

Reply
Thread Tools Display Modes

Clearing a "dead" login session?

 
 
Tim
Guest
Posts: n/a

 
      07-17-2004, 12:10 PM
Hi all.

I just logged in via SSH to my Linux box (RedHat 7.3), but the SSH
session did not close down cleanly - the connection was unexpectedly
lost and the client gave up and bombed out.

Now, when I do "w" on the box, I see a "phantom" login from this
session, with a massive idle time. The worrying thing was that I was
logged in as root, so I now have a dead root login hanging around.

Is there any way I can clear this login without rebooting the box?

TIA
 
Reply With Quote
 
 
 
 
Jerry Smiley
Guest
Posts: n/a

 
      07-17-2004, 01:53 PM
Tim wrote:

> Hi all.
>
> I just logged in via SSH to my Linux box (RedHat 7.3), but the SSH
> session did not close down cleanly - the connection was unexpectedly
> lost and the client gave up and bombed out.
>
> Now, when I do "w" on the box, I see a "phantom" login from this
> session, with a massive idle time. The worrying thing was that I was
> logged in as root, so I now have a dead root login hanging around.
>
> Is there any way I can clear this login without rebooting the box?
>
> TIA

Try using the 'top' command in a terminal console to find the process.
While in 'top', you can choose the 'k' option to kill a process...
 
Reply With Quote
 
Walter Schiessberg
Guest
Posts: n/a

 
      07-17-2004, 10:05 PM
Jerry Smiley wrote on 17.07.2004 15:53:

> Tim wrote:
>

[...]
>>Now, when I do "w" on the box, I see a "phantom" login from this
>>session, with a massive idle time. The worrying thing was that I was
>>logged in as root, so I now have a dead root login hanging around.
>>
>>Is there any way I can clear this login without rebooting the box?
>>
>>TIA

>
> Try using the 'top' command in a terminal console to find the process.
> While in 'top', you can choose the 'k' option to kill a process...


Otherwise do a "kill -9" on the first process for this login (shell).
Obviously you have to be root to do this

Walter
 
Reply With Quote
 
Raqueeb Hassan
Guest
Posts: n/a

 
      07-18-2004, 07:38 AM
you might do a "ps -ef" and find that process id and then kill that.

raqueeb hassan
kinshasa, drc
 
Reply With Quote
 
Tim
Guest
Posts: n/a

 
      07-18-2004, 08:12 AM
On 18 Jul 2004 00:38:33 -0700, (E-Mail Removed) (Raqueeb Hassan)
wrote:

>you might do a "ps -ef" and find that process id and then kill that.


Thanks for the responses, folks!

ps -ef showed the pid for the bash shell, then a kill -9 killed that,
which did indeed clear the "phantom" login as well :-)

Cheers!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically clearing "Preferred Networks" list Jack B. Pollack Wireless Networks 4 10-07-2007 01:16 PM
NEWS: "Free" Wi-Fi Follies: "EarthLink Deal With SF Looks Dead" John Navas Wireless Internet 1 08-30-2007 02:50 PM
printk(KERN_CRIT "Dead loop on virtual device %s, fix it urgently!\n", dev->name); Jean-Pierre FORCIOLI Linux Networking 0 07-15-2004 08:50 PM
Can "pppd" bind to a pty with "telnet" session over ethernet? Alex Yung Linux Networking 1 10-02-2003 01:33 PM
BTO - months of "dead frozen connections" Advice? guv Broadband 4 08-07-2003 08:01 PM



1 2 3 4 5 6 7 8 9 10 11