Starting the ssh Service
Linux systems that come with the ssh service already installed often are configured for it to start automatically.
In Fedora and RHEL systems, the sshd daemon is started from the /etc/init.d/sshd
startup script. To make sure the service is set up to start automatically in Fedora, RHEL, and other
RPM-based Linux systems, type the following (as root user):
# chkconfig --list sshd
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
218
Running the Show Part II
This shows that the sshd service is set to run in system states 2, 3, 4, and 5 (normal bootup states)
and set to be off in all other states. You can turn on the ssh service, if it is off, for your default run
state by typing the following as root user:
# chkconfig sshd on
This line turns on the ssh service when you enter run level 2, 3, 4, or 5. To start the service immediately,
type the following:
# service sshd start
Other Linux distributions may simply start the sshd daemon from an entry in the /etc/rc.d
directory from a file named something like rc.sshd. In any case, you can find out if the sshd
daemon is currently running on your system by typing the following:
$ ps ax | grep sshd
1996 ? Ss 0:00 /usr/sbin/sshd
The preceding example shows that the sshd daemon is running.
Pages:
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476