[소개]
리눅스에서는 sshd.config 파일에서 Dual로 설정하는게 가능하지만,
AIX는 불가능하다. 그러나, Dual로 쓸 수 있는 설정이 있습니다.
[실습 내용]
AIX에서 ssh 포트 Dual 사용 허가
[실습 환경]
AIX 07-01 (AIX 7.1 Version)
[실습]
1. Make a copy of the ssh configuration files.
# cp /etc/ssh/ssh_config /etc/ssh/otherssh_config
# cp /etc/ssh/sshd_config /etc/ssh/othersshd_config
- /etc/ssh/ssh의 ssh, sshd 설정값을 otherssh_config, othersshd_config 파일로 복사 시킨다.
2. Create link for the second sshd daemon
# cd /usr/sbin
# ln -s sshd othersshd
- /usr/sbin/sshd 데몬 파일의 링크 추가 (othersshd)
3. Edit the othersshd_config file and set the port to the desired port number
Port 2222
- Othersshd_config 포트 번호 확인
4. Start the othersshd process
# /usr/sbin/othersshd -f /etc/ssh/othersshd_config
- 기존의 sshd 데몬 말고 othersshd 데몬 시작
5. Confirm that ports 22 and 2222 are listening
# netstat -an | grep *.22
- netstat으로 포트 확인 (설정한 22 / 2222 포트를 확인 할 수 있다)
※본 실습의 캡처 본 미확보로 명령어로 대체하였습니다. 양해 부탁 드립니다.ㅠㅠ
'UNIX > admin' 카테고리의 다른 글
[IBM_AIX] TCP wrapper 설치 및 관리 (2) | 2023.03.27 |
---|