Getting rid of dead connections

From: Mike Dodd (mike@mdodd.com)
Date: 12/29/02

  • Next message: Mike Iglesias: "Re: VPN into PIX w/o cisco vpn client"
    From: mike@mdodd.com (Mike Dodd)
    Date: 28 Dec 2002 19:04:57 -0800
    
    

    I'm using SSH 3.4 on a Linux server for a home network. Several times
    in the past couple months, I've had to reboot a Windows PC that was
    connected to the server via SSH, and this has left an orphan
    connection that appears to stay open forever. (I've since learned of
    the ClientAliveInterval and ClientAliveCountMax options in
    /etc/ssh/sshd_config.)

    The problem is, the server thinks there are five current users when,
    in fact, there is only one. 'who' returns four users with pts/?
    ports, two of which are over a month old.

    I cannot find multiple instances of the ssh deamon running. 'ps -aux |
    grep ssh' returns one instance.

    I have restarted sshd, but that doesn't get rid of the dead
    connections.

    Is there any way to convince the Linux box that there is only one
    user? I've read the man pages for ssh and sshd, hoping for a
    command-line option that would do the trick, but haven't found
    anything.

    Thanks in advance for any help.

    Mike Dodd



    Relevant Pages

    • Re: What is The SSH?
      ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
      (microsoft.public.windows.server.networking)
    • Re: how to map drive via ssh?
      ... I'm assuming that both machines (client and server) are running ... be tunnelled over an SSH connection, ...
      (comp.security.ssh)
    • Re: Secure file sharing without OS X server?
      ... So I poked the GUI a bit - Finder, cmd-K, hit `Browse' in the `Connect ... to server' window, open the required server in the network browser, and ... them says `Allow secure connections using ssh'. ... `Can't make a secure connection to server ...
      (uk.comp.sys.mac)
    • ssh connections hang; un-hang on subsequent connection
      ... I'm experiencing a strange problem with ssh connections to my ssh server ... I can make an initial connection to my ssh server fine. ... When I re-connect with ssh, the first session "thaws" and all ...
      (comp.security.ssh)
    • RE: Re: Remote connections
      ... Compliments of Cygwin you can setup a SSH server on ... connection through the SSH connection. ... Aside from creating a VPN tunnel and then performing a Remote Desktop ... Server Terminal Services and XP and 2003 server Remote Desktop machines. ...
      (Focus-Microsoft)