#1  
Old 9th November 2010, 12:14
Rupert Rupert is offline
Junior Member
 
Join Date: Feb 2008
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
Default sftp not working with jailkit

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?
Reply With Quote
Sponsored Links
  #2  
Old 9th November 2010, 13:23
Rupert Rupert is offline
Junior Member
 
Join Date: Feb 2008
Posts: 26
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

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
Reply With Quote
The Following User Says Thank You to Rupert For This Useful Post:
falko (10th November 2010)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
jailkit not working on ISPconfig v 3.0.2 Debian Lenny jwlinux General 14 5th May 2011 16:03
auto update svn working copy donix Installation/Configuration 0 9th June 2010 20:59
Bug? Jailkit / chroot crashed server grigra General 19 15th October 2009 09:48
sftp with chroot? eugeneapolinary80 Installation/Configuration 0 2nd August 2009 00:01
sftp acess for Web users anuragj Installation/Configuration 2 6th February 2006 23:41


All times are GMT +2. The time now is 05:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.