sshfs 원격 서버의 마운트 폴더를 아파치 웹서버에서 접근하기
페이지 정보
작성자 관리자 (61.♡.222.236) 작성일 19-06-12 15:00 조회 2,538 댓글 0본문
sshfs 를 통해서 원격 서버를 mount 해서 백업을 하고 있다.
원격 서버의 특정 폴더를 마운트해서 apache 웹서버에서 접근을 하려는 데,
403 access denied 오류가 난다.
해결 방법을 알아보자.
ㅁ sshfs 기본 사용법
설치되어 있지 않으면 yum 으로 설치할 수 있다.
# yum install sshfs
기본적으로 아래와 같은 형식으로 사용할 수 있다.
# sshfs userid@xxx.xxx.xxx.xxx:/remote_folder /mount_folder
비밀번호를 물어보면 입력해 준다.
ㅁ access denied 해결 방법
마운트시에 옵션 -o allow_other 를 준다.
# sshfs userid@xxx.xxx.xxx.xxx:/remote_folder /mount_folder -o allow_other
참고
https://blog.leocat.kr/notes/2018/04/23/sshfs-mount-remote-server-using-ssh
원격 서버의 특정 폴더를 마운트해서 apache 웹서버에서 접근을 하려는 데,
403 access denied 오류가 난다.
해결 방법을 알아보자.
ㅁ sshfs 기본 사용법
설치되어 있지 않으면 yum 으로 설치할 수 있다.
# yum install sshfs
기본적으로 아래와 같은 형식으로 사용할 수 있다.
# sshfs userid@xxx.xxx.xxx.xxx:/remote_folder /mount_folder
비밀번호를 물어보면 입력해 준다.
ㅁ access denied 해결 방법
마운트시에 옵션 -o allow_other 를 준다.
# sshfs userid@xxx.xxx.xxx.xxx:/remote_folder /mount_folder -o allow_other
참고
https://blog.leocat.kr/notes/2018/04/23/sshfs-mount-remote-server-using-ssh
추천0
댓글목록 0
등록된 댓글이 없습니다.