Show Contents / Index / Search

Start and Stop the Server

The server starts automatically after installation.

A script is installed, which you can use to start, stop, and restart the server. 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

To run the server directly

  1. Log on 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 on as root.
  2. Use the following commands to start, stop, and restart the server:

    /etc/init.d/sshd start

    /etc/init.d/sshd stop

    /etc/init.d/sshd restart

To run the server script or service on Sun Solaris

  1. Log on as root.
  2. Use the following to start, stop, and restart the server:
    • On Sun Solaris 8 and 9 use the following commands to start, stop, and restart the server:

      /etc/init.d/sshd2 start

      /etc/init.d/sshd2 stop

      /etc/init.d/sshd2 restart

    • On Sun 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

To run the server script on HP-UX

  1. Log on as root.
  2. Use the following commands to start, stop, and restart the server:

    /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 on as root.
  2. Use the following commands to start, stop, and restart the server:

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

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

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