Skip to main content

How to configure SSHD on Xinetd

This is small tutorial on how to configure OpenSSH daemon on Xinetd.

This is useful if your users don't login too frequently over SSH, hence it wastes memory and CPU just by running in the background.

Note that SSHD needs to generate the server key before it reponds which can take long time depending on your key size. For small keysizes, it works well.

To change the port, you need to edit /etc/services. I will not be covering that here as that job is too easy to do (you can always request a tutorial if you want).

Here's how to setup Xinetd configuration file for SSHD:

service ssh
{
    
    socket_type = stream
    protocol = tcp
    instances = 3 # Keep this high if there's a possibility of multiple users logging at the same time.
    wait = no
    user = root
    server = /usr/sbin/sshd
    server_args = -i # Tell sshd that it is being run by xinetd
    port = 22 # Edit /etc/services to change this

}

Trackback URL for this post:

http://www.itech7.com/trackback/409

Post new comment

Google Friend Connect (leave a quick comment)
Loading
  • No HTML tags allowed
  • You can enable syntax highlighting of source code with the following tags: [code], [apache], [bash], [c], [c++], [html4], [ini], [java], [javascript], [jquery], [php], [python], [ruby], [sql].
  • You can use BBCode tags in the text. URLs will automatically be converted to links.
  • Images can be added to this post.
  • Use to create page breaks.
  • Textual smileys will be replaced with graphical ones.
  • E-Mail addresses are hidden with reCAPTCHA Mailhide.

More information about formatting options

CAPTCHA
This is to verify that you are human visitor
Syndicate content