SFTP only + Chroot 적용시 winscp 및 putty 접속 불가능 확인
컨텐츠 정보
- 6,368 조회
- 0 추천
- 목록
본문
SFTP only + Chroot 적용시 winscp 및 putty 접속 불가능 확인으로 설정 확인
https://www.server-world.info/en/note?os=Debian_9&p=ssh&f=5
SFTP only + Chroot 2017/06/21 |
Configure SFTP only + Chroot. Some users who are applied this settings can access only with SFTP and access to the permitted directories. | |
[1] | For example, Set /home as the Chroot directory. |
root@dlp:~# vi /etc/ssh/sshd_config # line 116: comment out and add a line like below # Subsystem sftp /usr/lib/openssh/sftp-serverSubsystem sftp internal-sftp # add to the end Match Group sftp_users X11Forwarding no AllowTcpForwarding no ChrootDirectory /home ForceCommand internal-sftp systemctl restart ssh |
[2] | Try to access with a user and make sure the settings. |
debian@www:~$ debian@www:~$ ssh debian@10.0.0.30 debian@10.0.0.30's password: This service allows sftp connections only. Connection to 10.0.0.30 closed. # denied normally sftp debian@10.0.0.30 Connecting to 10.0.0.30... debian@10.0.0.30's password: sftp> ls -l drwxr-xr-x 3 1001 1001 4096 Apr 23 03:11 debian drwxr-xr-x 4 1000 1000 4096 Apr 24 12:24 strechsftp> pwd Remote working directory: / sftp> exit |
■ ▶ ☞ ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다. https://11q.kr ♠
관련자료
댓글 0
등록된 댓글이 없습니다.