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
- Log in as root.
- 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.
- Log in as root.
- 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 Sun Solaris
- Log in as root.
- Use the following to start, stop, and restart the sshd service:
- On Sun 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 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
- Log in as root.
- 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
- Log in as root.
- 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
|