sftp not working with jailkit

Discussion in 'Installation/Configuration' started by Rupert, Nov 9, 2010.

  1. Rupert

    Rupert New Member

    Hello,

    i recently activatet the jailkit chroot stuff and its worked as wished.
    But when I now try to acces an account with jailkit enabled i can
    no longer use sftp connections .
    My Client gives me this information


    Code:
    tatus:	Connecting to panelweb.xxxxx.de...
    Response:	fzSftp started
    Command:	open "sjb_ssh@panelweb.xxxxx.de" 22
    Command:	Trust new Hostkey: Once
    Command:	Pass: **********
    Status:	Connected to panelweb.xxxxx.de
    Error:	Connection closed by server with exitcode 141
    Error:	Could not connect to server
    
    the syslog show me:
    Code:
    Nov  9 12:12:12 panelweb sshd[831]: Accepted keyboard-interactive/pam for sjb_ssh from 192.168.1.30 port 63018 ssh2
    Nov  9 12:12:12 panelweb sshd[834]: subsystem request for sftp
    Nov  9 12:12:12 panelweb jk_chrootsh[835]: now entering jail /srv/www/clients/client21/web31 for user sjb_ssh (5010)
    
    I checked the entry for sftp in jk_init and corrected the entry:


    Code:
    [sftp]
    comment = ssh secure ftp
    #executables = /usr/lib/sftp-server, /usr/libexec/openssh/sftp-server, /usr/lib/misc/sftp-server, /usr/libexec/sftp-server, /usr/lib64/ssh/sftp-server
    paths = /usr/bin/sftp
    includesections = netbasics, uidbasics
    devices = /dev/urandom, /dev/null
    

    so why is this failing?
     
  2. Rupert

    Rupert New Member

    ok, i got it:

    Code:
    [sftp]
    comment = ssh secure ftp
    executables = /usr/lib/sftp-server, /usr/libexec/openssh/sftp-server, /usr/lib/misc/sftp-server, /usr/libexec/sftp-server, /usr/lib64/ssh/sftp-server
    includesections = netbasics, uidbasics
    devices = /dev/urandom, /dev/null
    
    and than i ran:

    Code:
    jk_init -j /srv/www/clients/client21/web31/ sftp
    
     

Share This Page