차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
tech:ssh_sftp_jail [2016/12/21 11:37] V_Ltech:ssh_sftp_jail [2016/12/22 09:03] (현재) – [711퍼미션] V_L
줄 1: 줄 1:
 {{tag>ssh sftp jail chroot server}} {{tag>ssh sftp jail chroot server}}
 ======Ssh Sftp Jail====== ======Ssh Sftp Jail======
 +
 + 
 + 
 +
 +
 =====711퍼미션===== =====711퍼미션=====
  
- 퍼미션을 711로 변경했으면 는 추천 목입니다.+ 퍼미션을 711로 변경하여 
 +루트만 접근이 가능하도록 해준다.
  
    
 <file> <file>
-chmod 711 / +sudo chmod 711 / 
-chmod 711 /bin +sudo chmod 711 /bin 
-chmod 711 /boot +sudo chmod 711 /boot 
-chmod 711 /dev +sudo chmod 711 /dev 
-chmod 711 /etc +sudo chmod 711 /etc 
-chmod 711 /home +sudo chmod 711 /home 
-chmod 711 /mnt +sudo chmod 711 /mnt 
-chmod 711 /opt +sudo chmod 711 /opt 
-chmod 711 /proc +#sudo chmod 711 /proc 
-chmod 711 /usr +sudo chmod 711 /usr 
-chmod 711 /usr/local +sudo chmod 711 /usr/local 
-chmod 711 /var+sudo chmod 711 /var
 </file> </file>
  
줄 28: 줄 34:
  
      
 +문제점은 이렇게 설정한 유저는 ssh 에 접속이 안된다.
  
 ==== 방법==== ==== 방법====
줄 91: 줄 98:
 7)      Test the SFTP-Server function from the windows client use the “WinSCP” or “Filezilla”   7)      Test the SFTP-Server function from the windows client use the “WinSCP” or “Filezilla”  
  
 +
 +  * [[http://studyforus.tistory.com/243|SFTP 퍼미션 조정 및 Chroot 설정으로
 +상위폴더 접근 제한하기]]
   * [[http://linuxnextgen.blogspot.kr/2010/12/configure-sftp-server-using-chroot-jail.html|sftp-server-using-chroot-jail]]   * [[http://linuxnextgen.blogspot.kr/2010/12/configure-sftp-server-using-chroot-jail.html|sftp-server-using-chroot-jail]]
   * [[http://quickhowto.blogspot.kr/2013/03/setup-chroot-jail-for-ssh-sftp-in-ubuntu.html|]]   * [[http://quickhowto.blogspot.kr/2013/03/setup-chroot-jail-for-ssh-sftp-in-ubuntu.html|]]