데몬 스크립트 파일 : /etc/rc.d/init.d/sshd
작성자 정보
- 구돌 작성
- 작성일
컨텐츠 정보
- 2,469 조회
- 0 추천
- 목록
본문
데몬 스크립트 파일 : /etc/rc.d/init.d/sshd
sshd라는 OpenSSH서버데몬을 실행(중지)하는 스크립트입니다.
telnet과는 달리 ssh는 암호화하여 통신을 하기 때문에 보안을 위한 통신방법으로 주로 사용됩니다.
Telnet처럼 원격서버 로그인을 하는 ssh를 사용하려면 sshd데몬이 실행되어 있어야합니다.
이 스크립트는 sshd데몬을 실행시켜주는 스크립트입니다.
참고로 ssh는 TCP 22번과 UDP 22번을 사용합니다.
이 스크립트에 관련된 명령어들은 이 책의 ssh명령어편을 참조하시기 바랍니다.
사용옵션 : start|stop|restart|reload|condrestart|status
데몬파일 : /usr/sbin/sshd
관련디렉토리 : /etc/ssh/
PID파일 : /var/run/sshd.pid
설정파일
- /etc/ssh/ssh_host_key
- /etc/ssh/ssh_host_key.pub
- /etc/ssh/ssh_random_seed
- /etc/ssh/sshd_config
스크립트 사용예
[root@command init.d]# /etc/rc.d/init.d/sshd stop Stopping sshd:[ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/sshd start Starting sshd:[ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/sshd restart Stopping sshd:[ OK ] Starting sshd:[ OK ] [root@command init.d]# [root@command init.d]# /etc/rc.d/init.d/sshd status sshd (pid 6140 5551) is running... [root@command init.d]# [root@command init.d]# ps -ef | grep sshd root 5551 1 0 20:12 ? 00:00:00 /usr/sbin/sshd root 6140 1 0 21:01 ? 00:00:00 /usr/sbin/sshd root 6156 5553 0 21:01 pts/1 00:00:00 grep sshd [root@command init.d]# |
관련자료
-
이전
-
다음