Manage sshd Service on CentOS

  • Check the current sshd status:

    service sshd status

  • Start sshd service:

    service sshd start

  • Set sshd autostart on system startup

    chkconfig sshd on

  • List the current autostart status

    chkconfig --list |grep sshd

Or use a simple interface:

# ntsysv

Verified on CentOS 6.4 x86_64.

原文地址:https://www.cnblogs.com/darkmatter/p/3605590.html