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:
See AlsoHow to Enable SSH Commands in Windows - InterWorksSSH Agent ExplainedSetting up SSH-Agent in Windows for Passwordless Git Authentication - InterWorksHow to Enable SSH for Accessing a Remote Mac's Shell Securely/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 Oracle Solaris
Log in as root.
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/sshsvcadm disable network/sshsvcadm restart network/sshsvcs -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/RSITsshssvcadm disable network/RSITsshssvcadm restart network/RSITsshssvcs -l network/RSITsshs
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