SSH fails

Discussion in 'General' started by pier56, Feb 12, 2012.

  1. pier56

    pier56 Member

    Hello,

    Shell users are created.
    Some can connect, recently created can't.

    The server was uggraded to squeeze 2 month ago.

    What can I verify ?


    Thanks !
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which ISPConfig version do you use and with which ispconfig version were the ssh users created?
     
  3. pier56

    pier56 Member

    ISPconfig version what I use : 3.0.4.2, for recent ssh user.

    ISPconfig version where the ssh users created (which can acces) : last user was created at the end of 2010.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the exact error messages that you get in /var/log/syslog when you try to login and post the line for the user that fails from /etc/passwd
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you run a ispconfig update afterwards where you choose to reconfigure services?
     
  6. pier56

    pier56 Member

    I just update to 3.4.0.3, with reconfiguration of services, and finally a reboot.

    No line for connexion in syslog.
    /usr/sbin/jk_chrootsh and not /bin/bah in passwd.

    I correct, it is good.

    I remenber a problem with bash, but not what to do. Force bash by shell ? I think it is a bug in ispconfig, which shows bash as shell.

    I prefer to update squeeze and ispconfig when there is updates.

    But I think I have to write a log of actions.


    Thanks.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats no bug at all, ist a setting in the client limits if you want to run a cronjob with jailkit or not.
     
  8. pier56

    pier56 Member

    Ok, but why jailkit blocks ssh access ?
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Jailkit does not block ssh access if its correctly installed. You should reinstall jailkit (latest jailkit version) and then run a ispconfig update where you select to reconfigure services. To test the new install, create a new website and then a new ssh user in that website as the jail is created only once when a new website is setup.
     
  10. pier56

    pier56 Member

    I found that jailkit is missing.
    The first install of ispconfig was from OVH, with lenny.
    Perhaps a bad upgrade to squeeze ?

    I install jailkit :
    apt-get -y install build-essential autoconf automake1.9 libtool flex bison debhelper

    cd /tmp
    wget http://olivier.sessink.nl/jailkit/jailkit-2.14.tar.gz
    tar xvfz jailkit-2.14.tar.gz
    cd jailkit-2.14
    ./debian/rules binary
    cd ..
    dpkg -i jailkit_2.14-1_*.deb
    rm -rf jailkit-2.14*

    I'm waiting ispconfig 3.0.4.4 to reconfigure.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    You can run the ispconfig 3.0.4.3 update again by using the manual update instructions from the release notes.
     
  12. pier56

    pier56 Member

    Ok, it works !

    Is it possible to jailkit users created before installing jailkit ?
     

Share This Page