"Sshd"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
8번째 줄: 8번째 줄:
*기본 포트로 22번을 사용
*기본 포트로 22번을 사용


<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# service sshd status
[root@zetawiki ~]# service sshd status
openssh-daemon (pid  1993) is running...
openssh-daemon (pid  1993) is running...
</source>
</syntaxhighlight>
<source lang='console'>
<syntaxhighlight lang='console'>
[root@zetawiki ~]# netstat -anp | grep LISTEN | grep sshd
[root@zetawiki ~]# netstat -anp | grep LISTEN | grep sshd
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                  LISTEN      1993/sshd           
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                  LISTEN      1993/sshd           
tcp        0      0 :::22                      :::*                        LISTEN      1993/sshd   
tcp        0      0 :::22                      :::*                        LISTEN      1993/sshd   
</source>
</syntaxhighlight>
:→ IPv4, IPv6 모두 LISTEN 중
:→ IPv4, IPv6 모두 LISTEN 중


22번째 줄: 22번째 줄:
{{참고|/etc/init.d/sshd}}
{{참고|/etc/init.d/sshd}}
다음 명령어로 시작(start), 중지(stop), 재시작(restart)을 할 수 있다.
다음 명령어로 시작(start), 중지(stop), 재시작(restart)을 할 수 있다.
<source lang='bash'>
<syntaxhighlight lang='bash'>
service sshd start
service sshd start
service sshd stop
service sshd stop
service sshd restart
service sshd restart
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2021년 9월 24일 (금) 23:20 기준 최신판

1 개요[ | ]

OpenSSH SSH daemon; openssh-daemon; sshd
/usr/sbin/sshd
SSH 데몬, 보안쉘 데몬, 리눅스 SSH 서버
  • 리눅스에 SSH(보안쉘) 접속을 할 수 있게 해주는 SSH 서버 데몬
  • 설정 파일은 /etc/ssh/sshd_config
  • 기본 포트로 22번을 사용
[root@zetawiki ~]# service sshd status
openssh-daemon (pid  1993) is running...
[root@zetawiki ~]# netstat -anp | grep LISTEN | grep sshd
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1993/sshd           
tcp        0      0 :::22                       :::*                        LISTEN      1993/sshd
→ IPv4, IPv6 모두 LISTEN 중

2 기본 명령어[ | ]

다음 명령어로 시작(start), 중지(stop), 재시작(restart)을 할 수 있다.

service sshd start
service sshd stop
service sshd restart

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}