SSH can't login when chroot shell is selected

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Feb 1, 2017.

  1. pawan

    pawan Member HowtoForge Supporter

    Hi, I am not able to SSH when chroot shell is selected. If I deselect it then I am able to login.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You login with a normal terminal like the ssh command or putty and not scp (scp is not working with chroot shell)? Any errors n the Linux syslog or auth.log file?
     
  3. pawan

    pawan Member HowtoForge Supporter

    I am trying with putty.
    So if I want to say transfer file from my windows pc to server, how I can do that?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, and no errors in the logs?

    E.g. with FTP over TLS (FTPS).
     
  5. pawan

    pawan Member HowtoForge Supporter

    Yes. no error in the logs. only in the putty terminal I get access denied.
    once I change the chroot shell to none, I am able to login without any issue.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please take a look in the /etc/passwd file of the server and post the line of the affected user (username can be changed) and the line of the web user of that site.
     
  7. pawan

    pawan Member HowtoForge Supporter

    The relevant line in /etc/passwd looks like this
    web13:x:5011:5006::/var/www/clients/client2/web13/./home/mywebpawan:/usr/sbin/jk_chrootsh
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    that's ok. But there must be another user, the one that you use for login and that you created in ISPConfig.
     

Share This Page