Linux
리눅스 ssh 설치 및 방화벽 설정
쓱은감자
2022. 8. 10. 21:50
SSH 설치 및 설정
- sshd 설치 확인
- `ps -ef | grep openssh-server
- ssh 설치
$ yum install -y openssh-server
$ systemctl restart sshd
$ systemctl enable sshd
- ssh 포트 설정
vi /etc/ssh/sshd_config
에서 port 22 주석 제거
- 방화벽 해제
firewall-cmd --zone=public --add-port=22/tcp --permanent
- ssh 재시작
systemctl restart sshd