How to start and stop the sshd service on linux and unix platform?
HP-UX SSHD Service startup and shutdown command:

Code
bash-3.1# /sbin/init.d/secsh stop
HP-UX Secure Shell stopped
bash-3.1# /sbin/init.d/secsh start
HP-UX Secure Shell started
bash-3.1# ps -ef | grep sshd
root 17112 1 0 16:07:51 ? 0:00 /opt/ssh/sbin/sshd
root 17119 17066 1 16:09:04 pts/ta 0:00 grep sshd
bash-3.1#
if you get the output like below during the startup, please try another way:

Code
bash-3.2# /sbin/init.d/secsh start
ERROR: /etc/rc.config.d/sshd defaults file MISSING
bash-3.2# /usr/local/sbin/sshd
bash-3.2# ps -ef | grep sshd
root 13944 28237 0 16:15:04 pts/ta 0:00 grep sshd
root 13827 1 0 16:08:36 ? 0:00 /usr/local/sbin/sshd
bash-3.2#
Solaris SSHD Service startup and shutdown command:
Solaris 8/9:

Code
bash-3.00# /etc/init.d/sshd stop
bash-3.00# /etc/init.d/sshd start
starting SSHD daemon
bash-3.00# ps -ef | grep sshd
root 18125 1 3 16:22:54 ? 0:01 /usr/local/sbin/sshd
bash-3.00#
Solaris 10:

Code
bash-3.00# svcadm disable ssh
bash-3.00# svcadm enable ssh
bash-3.00# ps -ef | grep sshd
root 18723 16869 0 16:38:50 pts/2 0:00 grep sshd
root 18721 1 0 16:38:48 ? 0:00 /usr/lib/ssh/sshd
bash-3.00# svcadm restart ssh
bash-3.00# ps -ef | grep sshd
root 18729 16869 0 16:39:46 pts/2 0:00 grep sshd
root 18727 1 0 16:39:44 ? 0:00 /usr/lib/ssh/sshd
bash-3.00#
AIX SSHD Service startup and shutdown command:

Code
bash-2.03# stopsrc -s sshd
0513-044 The sshd Subsystem was requested to stop.
bash-2.03# startsrc -s sshd
0513-059 The sshd Subsystem has been started. Subsystem PID is 7708.
bash-2.03# ps -ef | grep sshd
root 7708 3894 3 16:52:49 - 0:03 /usr/sbin/sshd -D
bash-2.03#
Linux(Red Hat/Fedora/Suse/ESX) SSHD Service startup and shutdown command:

Code
[root@rhel5eric release]# service sshd stop
Stopping sshd: OK ]
[root@rhel5eric release]# service sshd start
Starting sshd: OK ]
[root@rhel5eric release]# ps -ef | grep sshd
root 2830 1 0 16:53 ? 00:00:00 /usr/sbin/sshd
root 2833 2474 0 16:53 pts/0 00:00:00 grep sshd
[root@rhel5eric release]#
Debian/Ubuntu SSHD Service startup and shutdown command:

Code
#invoke-rc.d sshd stop
#invoke-rc.d sshd start
or

Code
ndb4r0v1:~# invoke-rc.d sshd stop
invoke-rc.d: unknown initscript, /etc/init.d/sshd not found.
ndb4r0v1:~# /etc/init.d/ssh stop
Stopping OpenBSD Secure Shell server: sshd.
ndb4r0v1:~# /etc/init.d/ssh start
Starting OpenBSD Secure Shell server: sshd.
ndb4r0v1:~# ps -ef | grep sshd
root 4150 1 0 17:00 ? 00:00:00 /usr/sbin/sshd
root 4152 4097 0 17:00 pts/0 00:00:00 grep sshd
ndb4r0v1:~#