취미와 밥줄사이
[ CentOS 7 ] 에러 - Job for sshd.service failed because ... 본문
문제발생 상황
- ssh 포트번호 변경을 적용한 이후
systemctl restart sshd
- 위의 명령어를 사용했을 때
- Job for sshd.service failed because.. 에러메시지가 발생함
문제 원인
- selinux가 active 되어 있었기 때문
해결방법
- selinux Permissive로 전환
# setenforce를 통해 Permissive로 변경
# getenforce를 통해 selinux permissive 확인
setenforce 0
getenforce
# selinux를 disabled로 설정 변경
vi /etc/sysconfig/selinux
REFERENCE
https://growingsaja.tistory.com/369
[Solved][Centos7] Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.ser
[ 문제 상황 ] 변경된 sshd_config 파일의 설정 내용을 적용시키기 위해 시도한 sshd.service 재시작 실패 systemctl restart sshd [ ERROR 문구 예시 ] Job for sshd.service failed because the control pr..
growingsaja.tistory.com
'OS > Linux' 카테고리의 다른 글
[ 우분투 ] 서비스 확인, 시작, 중지, 재시작 (0) | 2022.03.11 |
---|---|
[ CentOS 7 ] 기본 터미널 색상 변경방법 (0) | 2022.03.09 |
[ CentOS 7 ] 에러: Another app is currently holding the yum lock; (0) | 2022.03.08 |
[ Ubuntu 20.04 ] su / su - 차이점 (0) | 2022.03.07 |
[ Linux ] zcat 명령어 (0) | 2022.03.07 |