Oops Err for jailed ssh Users

Discussion in 'General' started by Morons, Jun 28, 2010.

  1. Morons

    Morons Member

    My error WinSCP echo is:
    Code:
    Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
    Even if I re-create the user and the Protocol is SCP port 22

    Code:
    cat /etc/passwd |grep snuffeduser
    Code:
    snuffeduser:x:5018:5011::/var/www/clients/client9/web20/./home/snuffeduser:/usr/sbin/jk_chrootsh
    Code:
    root@artemis:~# ll /var/www/clients/client9/web20/./home/snuffeduser
    total 8.0K
    drwxr-xr-x 2 web20 client9 4.0K 2010-06-28 10:35 ./
    drwxr-xr-x 4 root  root    4.0K 2010-06-28 10:35 ../
    Code:
    -rwsr-xr-x 1 root root 22K 2010-05-31 17:05 /usr/sbin/jk_chrootsh*
    Hmm Any knowledge ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The shell is ok, it is a bash compatible shell wrapper that jails the user. Just winscp does not seem to know the jailed shell. Are you able to login with winscp?
     
  3. Morons

    Morons Member

    No ssh show login then crash out and closes.

    /var/log/auth.log sais
    Code:
    Jun 28 11:40:49 artemis jk_chrootsh[31896]: ERROR: failed to execute shell /bin/bash for user snuffeduser (5019), check the permissions and libraries of /var/www/clients/client9/web20//bin/bash
    Code:
    -rwxr-xr-x 7 root root 815K 2009-03-02 16:23 /var/www/clients/client9/web20//bin/bash*
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Which ISPConfig version do you use and which jailkit version?
     
  5. Morons

    Morons Member

    Code:
    dpkg -i jailkit_2.11-1_*.deb
    
    ISPConfig-3.0.2.1.tar.gz was my last download.

    Code:
    root@artemis:~# lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 10.04 LTS
    Release:        10.04
    Codename:       lucid
    
     
  6. Morons

    Morons Member

    Any Ideas about this?
     
  7. Doug G

    Doug G Member HowtoForge Supporter

    I'm using a few-month old installation of winscp running on windows 7, and can connect to an ispconfig3 site jailkit user without problems. I'm using a fedora 12 ispc3 3.0.2.1 server running on a vmware server VM.
     
  8. Morons

    Morons Member

    Likewise, It used to work - I see ne reason for accusing software versions, I'm just trying to figure out how to debug this - some setting of other error occured.
     

Share This Page