11.Nas_1


새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


SFTP only + Chroot 적용시 winscp 및 putty 접속 불가능 확인

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    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.
    # create a group for SFTP

    root@dlp:~# 
    groupadd sftp_users

    # apply to a user [debian] for SFTP only as an example

    root@dlp:~# 
    usermod -G sftp_users debian

    root@dlp:~# 
    vi /etc/ssh/sshd_config
    # line 116: comment out and add a line like below

    #
    Subsystem sftp /usr/lib/openssh/sftp-server
    Subsystem sftp internal-sftp
    # add to the end

    Match Group sftp_users
      X11Forwarding no
      AllowTcpForwarding no
      ChrootDirectory /home
      ForceCommand internal-sftp
    root@dlp:~# 
    systemctl restart ssh

    [2]Try to access with a user and make sure the settings.
    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
    debian@www:~$ 
    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 strech
    
    sftp> 
    pwd

    Remote working directory: /
    sftp> 
    exit

    ■ ▶ ☞ ♠ 정보찾아 공유 드리며 출처는 링크 참조 바랍니다. https://11q.kr ♠

    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    등록된 댓글이 없습니다.


    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사




    Total 1,755 / 25 Page
    [ CoreELEC 9.2.2 신버전 다운로드경로및 업데이트 다운로드 설치방법 ] 댓글 2

    CoreELEC 9.2.2 신버전 다운로드경로및 업데이트 다운로드 설치방법11q.kr에 참조 드립니다.CoreELEC 9.2.2CoreELEC …

    [ Termux 원격 액세스 ]

    Termux 원격 액세스Termux는 몇 가지 일반적인 도구를 사용하여 원격 장치에 액세스 할 수 있습니다. Termux를 실행하는 장치를 원격…

    [ 안드로이드에서 데비안 설치 앱 ]

    안드로이드에서 데비안 설치 앱https://wiki.debian.org/ChrootOnAndroidAndroid 기기에서 데비안 chroot를 …

    [ 다운로드 MariaDB 저장소 설정 ]

    다운로드MariaDB 저장소 설정https://downloads.mariadb.org/mariadb/repositories/#distro=Deb…

    [ Debian 10 Linux에 Apache Web Server를 재설치하는 방법 ]

    Debian 10 Linux에 Apache Web Server를 재설치하는 방법■ 문제 발생 재 설치 합니다https://linuxize.com…

    [ 자동실행파일 분석/termux와 debian 자동실행 파일 최종 분석 ]

    자동실행파일 분석/termux와 debian 자동실행 파일 최종 분석1) 처음에 안드로이드 box가 부팅 되면autostart 어플로 설정 합니…


    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-06-23 10:50:36

    오늘의 홈 현황


    • 현재 접속자♨ 660(1) 명
    • 오늘 가입자※ 2 명
    • 어제 가입자※ 2 명
    • 주간 가입자※ 16 명
    • 오늘 방문자 1,257 명
    • 어제 방문자 1,998 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,394,023 명
    • 전체 게시물※ 8,654 개
    • 전체 댓글수※ 24,772 개
    • 전체 회원수 11,069 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑