[Linux] Workstation CentOS7.9 ssh 연결

Ja L·2023년 11월 13일
0

[OS] Linux

목록 보기
5/7
vi /etc/selinux/config
# /etc/selinux/config
SELINUX=disabled

SELinux는 Linux 커널에 내장된 보안 모듈로 강제적 접근 제어를 수행
OS 설치 후 SELinux는 기본적으로 Enforcing 상태로 되어있습니다.

SELinux가 필요하지 않은 경우 /etc/selinux/config 또는 /etc/sysconfig/selinux를 수정하여 영구적으로 비활성화 시킬 수 있습니다.

dhclient 
systemctl restart network 
ping 8.8.8.8
firewall-cmd --list-ports
firewall-cmd --permanent --zone=public --add-port=22/tcp
firewall-cmd --reload
firewall-cmd --list-ports
profile
DB Engineer

1개의 댓글

comment-user-thumbnail
2023년 11월 14일

좋은 글이네요. 공유해주셔서 감사합니다.

답글 달기