Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am by no means an experienced Linux user, I am however trying to set up an OpenSSH server on Ubuntu 9.04. I seem to have it working using ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    1

    OpenSSH Stops Listening after first client

    Hi,

    I am by no means an experienced Linux user, I am however trying to set up an OpenSSH server on Ubuntu 9.04.

    I seem to have it working using publickeys, my only problem is that the server seems to stop listening for connections when the first session ends and i get this from the terminal:
    Code:
    ssh: connect to host <IP ADDRESS> port 22: Connection refused
    I then need to run this line to get it to start listening again.
    Code:
    /usr/sbin/sshd -f /home/zeb/sshd_config
    Can someone tell me how i can have it running all the time?

    Any help here appreciated,

    Zeb

  2. #2
    Linux Newbie raghaven.kumar's Avatar
    Join Date
    Mar 2008
    Location
    Bangalore, India
    Posts
    209
    You can actually put a logout script.
    Eg., If its a bash shell, you can use a file .bash_logout which you need to create in the home directory of the user u use to connect the remote machine
    .bash_logout and .logout: Leaving linux/UNIX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...