분류 전체보기 49

[Error] Job for sshd.service failed because the control process exited with error code. See "sysyemctl status sshd.service" and "journalctl -xe" for details.

😱 Error / 문제점 ssh 포트 번호 변경을 한 후 아래의 명령어를 사용하니까 에러메시지가 떴다. systemctl restart sshd Job for sshd.service failed because the control process exited with error code. See "sysyemctl status sshd.service" and "journalctl -xe" for details. 🔍 이유 및 해결방법 selinux가 active 되어 있어서 발생한 것이다. 1. selinux Permissive로 전환 및 확인 setenforce 0 getenforce 2. selinux를 disabled로 설정 vi /etc/sysconfig/selinux 3. systemctl rest..

System/Linux 2023.06.20

yum 을 이용해서 ssh 설정 및 ssh 포트 변경하기

⚙️ ssh 설치 확인 # which sshd /usr/sbin/sshd ⚙️ ssh 설정 # vi /etc/ssh/sshd_config Port 22 (주석 제거) ⚙️ 방화벽 설정 # firewall-cmd --zome=public --add-port=22/tcp --permanent success ⚙️ ssh 프로세스 실행 # systemctl start sshd # systemctl status sshd ⚙️ ssh 포트 변경 # vi /etc/ssh/sshd_config Port 2222 # vi /etc/services ssh 2222/tcp ssh 2222/udp services 파일은 건들면 안된다! * 작업하는 중에 아래와 같이 표시가 된적이 있는데 놔두면 계속 나타나기 때문에 지워준다...

System/Linux 2023.06.20

[Linux] yum repository 를 설정해서 yum 사용되게 설정하기

yum repository 확인 $ yum repolist yum repository 설정 위치 $ cd /etc/yum.repos.d/ $ ls CentOS-Base.repo yum repository 설정 $ vi CentOS-Base.repo SK브로드밴드, KT, LG 유플러스의 DNS, nameserver 설정 DNS (Domain Name System) 1. BIND 패키지 2. DNS 설정 파일 3. named 데몬 4. 방화벽 오픈 5. Chroot 구성 (설정, named-chroot 데몬) 6. 도메인 등록 현재 CentOs에 설정되어 있는 DNS 서버는 하나다. 이 서버를 이용할 수 없는 상황을 대비해 SK 브로드 밴드, KT, LG 유플러스 SK 브로드밴드 219.250.36.130..

System/Linux 2023.06.20