ssh 접속시 "~~~ port 22: Connection refused" ssh 접속시 "~~~ port 22: Connection refused" 에러가 떨어진다면 서비스에 sshd가 떠있는지 확인하자. 커맨드에# /etc/rc.d/init.d/sshd start를 입력하자. 위의 sshd의 경로는 리눅스 버전마다 조금씩 차이가 있을 수 있다. 위의 방벙으로 안될경우 방화벽에 22번 포트가 허용되어 있는지 확인하자. Linux 2012.07.09
로그 이쁘게 보기! tail 과 awk 리눅스에서 실시간으로 로그를 확인해야 할때가 있는데 그럴 경우 전 아래의 명령어를 실행합니다. 명령어 : tail -f access.log 실행결과 : 118.34.220.226 - - [07/Apr/2010:14:54:42 +0900] "POST /bbs/delete_all.php HTTP/1.0" 200 121 "http://xxxx.co.kr/xxxx/xxx/xxxx/xxxx/xxx/xxx.jsp" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; EmbeddedWB 14.52 from: http://www.xxxxxcom/ EmbeddedWB 14.52.. Linux 2010.04.07
아이피 기반 접속제한 리눅스 터미널 아이피 기반 접속 제한 /etc/hosts.allow # # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # sshd, in.telnetd, vsftpd : 127.0.0.1 : allow sshd, in.telnetd, vsftpd : ALL : deny rsync : 125.126.127.128 sshd, in.telnetd, vsftpd : 허용할 아이피 rsync : 서버 아이피 Linux 2009.11.18