728x90
리눅스 Tip
tap 누르면 뒤에 사용할수 있는 문자가 나옴 .
cp /etc/httpd/conf
ls
vi httpd.conf
service httpd restart
service httpd status
service xinetd status
service sshd status
service iptable status
rpm -qa | openssh 로 설치 확인 (기본적으로 설치가 되어 있어야 함)
설치 되어 있으면 정상 접속 가능
/etc/services 에서 포트 넘버 바꿀 수 있음
포트 바꾼후 netstat -ntl로 확인
안바뀌어 있으면 service xinetd restart
/etc/sysconfig/iptables 포트 추가
service iptables restart
접속 확인
ssh 포트 변경
vi /etc/ssh/sshd_config에서
#Port 22 # 풀고, 바꿀 포트 변경 하시고,
iptables에서 변경한 SSH 포트 입력 후
ssh, iptables restart 하시면 됩니다.
service sshd restart
service iptables restart
telnet root계정 접속 하기
pts - 원격 접속 포트 추가
728x90
'Programing > Linux' 카테고리의 다른 글
Samba 정리 (0) | 2019.11.17 |
---|---|
Telnet 구축 (0) | 2019.11.17 |
SSH 설치 (0) | 2019.11.17 |
netstat -ntl 포트 확인 (0) | 2019.11.17 |
DNS (0) | 2019.11.17 |