Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    48

    Default jailshell .profile and Sftp

    Anyone know how to make it work again .profile and Sftp using jailshell?

    The biggest problem is with Sftp, when I try to connect through Sftp/jailshell I get
    File transfer server could not be started or it exited unexpectedly. Exit value 0 was returned. Most likely the sftp-server is not in the path of the user on the server side
    I looked at /etc/shells, also in sshd_config and Subsystem sftp /usr/libexec/openssh/sftp-server is uncommented

    Anybody know how to make it work?

    Thanks in advance!

  2. #2
    Member
    Join Date
    Jun 2002
    Posts
    78

    Default

    I'm also looking for a solution


  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    89

    Default

    It's because the jailshell does not allow a user to access /usr/libexec/openssh/sftp-server ...by symlinking it into /usr/bin it would work, but then we need to figure out how to get that file to be included into the jailshell's virtfs bin directory.

    Okay, I just brute-forced it and plain-ol' copied /usr/libexec/openssh/sftp-server into /home/virtfs/username/bin and it works... that's a one at a time solution to the sftp/ftp over ssh problem, but it works for me. The cpanel implementation of jailshell is too convoluted from the original for me to concern myself with trying to figure it out beyond that.
    Last edited by indiboi; 05-31-2003 at 07:19 PM.

  4. #4
    Member
    Join Date
    Apr 2003
    Posts
    243

    Default

    or you can just dump a copy in the /usr/bin (since the normal /usr/bin and the jailshell one are linked together removing stuff from /usr/bin will remove it frm the jailshell one)

    cPanel.net Support Ticket Number:

Similar Threads & Tags
Similar threads

  1. JailShell for SFTP?
    By yeahoi in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-27-2008, 08:44 AM
  2. sftp + jailshell problems
    By andriven in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-11-2005, 04:53 PM
  3. Make Jailshell supports SFTP
    By Doctor in forum cPanel and WHM Discussions
    Replies: 29
    Last Post: 01-03-2004, 12:17 AM
  4. Jailshell profile/startup
    By vis in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-27-2003, 03:17 AM
  5. SFTP and JailShell are not friends
    By trparky in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-15-2003, 10:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube