2.1 Start and Stop the Server

The sshd service starts automatically after installation.

A script is installed, which you can use to start, stop, and restart the sshd service. The name and location of the script varies, depending on your operating system. When you use the script to start the server, the following sshd command is invoked.

sshd -oPidFile=sshd_PidFile_keyword_value

NOTE:Do not use inetd to launch sshd. This is not a supported configuration. Attempting this configuration in FIPS mode results in extremely long connection times for each user connection; this is because sshd needs to run required self tests for each connection.

To run the sshd service directly

  1. Log in as root.

  2. Include full path information:

    /usr/sbin/sshd options

To run the server script on Linux

NOTE:The following commands work on all Linux platforms, although in some cases the actual script file is installed to a different location.

  1. Log in as root.

  2. Use the following commands to start, stop, and restart the sshd service:

    /etc/init.d/sshd start
    /etc/init.d/sshd stop
    /etc/init.d/sshd restart

To run the server script or service on Oracle Solaris

  1. Log in as root.

  2. Use the following to start, stop, and restart the sshd service:

    • On Solaris 8 and 9 use the following commands to start, stop, and restart the sshd service:

    /etc/init.d/sshd2 start
    /etc/init.d/sshd2 stop
    /etc/init.d/sshd2 restart
    • On Solaris 10 use the following service options to start, stop, restart, and check the state of the service:

    svcadm enable network/ssh
    svcadm disable network/ssh
    svcadm restart network/ssh
    svcs -l network/ssh
    • On Solaris 11 use the following service options to start, stop, restart, and check the state of the service:

    svcadm enable network/RSITsshs
    svcadm disable network/RSITsshs
    svcadm restart network/RSITsshs
    svcs -l network/RSITsshs

To run the server script on HP-UX

  1. Log in as root.

  2. Use the following commands to start, stop, and restart the sshd service:

    /sbin/init.d/sshd2 start
    /sbin/init.d/sshd2 stop
    /sbin/init.d/sshd2 restart

To run the server script on IBM AIX

  1. Log in as root.

  2. Use the following commands to start, stop, and restart the sshd service:

    /etc/rc.d/init.d/sshd start
    /etc/rc.d/init.d/sshd stop
    /etc/rc.d/init.d/sshd restart