Gooday Note Scrap Source Android login
 
작성일 : 15-06-15 23:32
[Linux] 설치 및 설정
 글쓴이 : 기리 (123.♡.195.24)
조회 : 1,333  

*** FTP 설치 및 설정 ***

1. 설치 확인 : rpm -qa | grep vsftpd

2. 설치 : yum install vsftpd

3. 설정

- 부팅시 자동 실행 : chkconfig vsftpd on

- /etc/vsftpd/vsftpd.conf

anonymous_enable=NO : anonymous 사용자의 접속 허용 여부

local_enable=NO : 로컬 계정 사용자의 접속 허용여부

# 홈 디렉토리 상위로 이동금지

# 설정 후 /etc/vsftpd.chroot_list 파일이 없다는 오류가 발생하게 되면, 해당파일을 자동생성해줌

chroot_list_enable=YES

chroot_local_user=YES

force_dot_files=YES : 숨김파일을 보이게하기

hide_ids=YES : FTP 접속시 소유권숨기기

*** 방화벽 설정 ***

/etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 3690 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT

*** ssh root 접속 제한 *** 

계정 생성 : adduser {usernid}

패스워드 변경 : passwd {userid}

/etc/ssh/sshd_config : PermitRootLogin yes -> no 

service sshd restart : sshd 재시작


 
 

Total 121
번호 제   목 글쓴이 날짜 조회
106 [RaspberryPi] 외장하드 마운트(ntfs) 기리 10-23 1242
105 [RaspberryPi] Raspberry pi FTP 설치 (1) 최고관… 10-23 912
104 [RaspberryPi] Raspberry pi APM(apache, php, mysql) 설치 (1) 최고관… 10-23 1199
103 [RaspberryPi] Raspberry pi wlan 설정 최고관… 10-23 886
102 [RaspberryPi] Raspberry Pi 설정 - Raspbian 최고관… 10-23 913
101 [RaspberryPi] Raspberry Pi 설치 - Raspbian 최고관… 10-23 1228
100 [MySql] 사용자 추가 기리 06-16 1327
99 [Linux] apache 403 기리 06-16 1475
98 [Linux] 설치 및 설정 기리 06-15 1334
97 [Linux] IP 차단 (1) 기리 03-06 1985
96 [MySql] mysql log - BinLog 파일 Text 변환 (1) 기리 10-31 4155
95 [PHP] PHP CodeSniffer 기리 10-07 2312
94 [Linux] 자동응답메일 설정 기리 09-23 2115
93 [Linux] Subversion(SVN) 설치 및 사용법 기리 08-13 2903
92 [Html] CSS Gradient Background Maker 기리 04-08 3064
 1  2  3  4  5  6  7  8  9