Cannot FTP or SSH into Client Account

Discussion in 'General' started by briand0713, May 11, 2011.

  1. briand0713

    briand0713 New Member

    So I finally gave up with OpenSuSE 11.4 and went back to 11.2 and now ISPConfig3 seems more stable. Last Night I was able to successfully make a client for myself, website, subdomains, FTP and SSH accounts and was able to login to those accounts using WinSCP and Putty. My friend noticed a php error in php.ini so I went and fixed it, restarted apache and after that, I couldn't log back into the shell hostings with WinSCP or Putty.

    I tried making other logins, delete and remake the client but still couldn't login. I figured I messed something up with php.ini so I decided to reinstall OpenSuSE 11.2 and start from scratch but once again, after creating the FTP and Shell Acount, I still wasn't able to login.

    For WinSCP, I keep getting this when trying to login

    Code:
    Connection has been unexpectedly closed. Server sent command exit status 11.
    Cannot initialize SFTP protocol. Is the host running a SFTP server?
    
    I believe that this is the neccessary error log:

    Code:
    May 11 14:32:02 server1 sshd[20818]: Accepted keyboard-interactive/pam for brian from 192.168.0.192 port 55696 ssh2
    May 11 14:32:06 server1 sshd[20892]: Accepted keyboard-interactive/pam for npsxweb1 from 192.168.0.192 port 55702 ssh2
    May 11 14:32:06 server1 sshd[20896]: subsystem request for sftp
    May 11 14:32:06 server1 jk_chrootsh[20897]: abort, effective user ID is not 0, possibly jk_chrootsh is not setuid root
    May 11 14:32:11 server1 sshd[20900]: Accepted keyboard-interactive/pam for npsxweb1 from 192.168.0.192 port 55704 ssh2
    May 11 14:32:11 server1 sshd[20904]: subsystem request for sftp
    May 11 14:32:11 server1 jk_chrootsh[20905]: abort, effective user ID is not 0, possibly jk_chrootsh is not setuid root
    May 11 14:32:17 server1 sshd[20908]: Accepted keyboard-interactive/pam for npsxweb1 from 192.168.0.192 port 55705 ssh2
    May 11 14:32:17 server1 sshd[20912]: subsystem request for sftp
    May 11 14:32:17 server1 jk_chrootsh[20913]: abort, effective user ID is not 0, possibly jk_chrootsh is not setuid root
    May 11 14:32:19 server1 sshd[20898]: Accepted keyboard-interactive/pam for npsxweb1 from 192.168.0.192 port 55703 ssh2
    May 11 14:32:19 server1 jk_chrootsh[20915]: abort, effective user ID is not 0, possibly jk_chrootsh is not setuid root
    
    EDIT: I made a second user 'npsxweb2' and I went into yast2. It looked like the password was shorter than what I set so I adjusted the password through yast and now I'm able to SSH in for user 'npsxweb2'. I did get an error though when attempting to do the same for 'npsxweb1' Below is the error message as well as the user details.

    Code:
    Error                                                        
    The home directory may only contain the following characters:
    a-z, A-Z, 0-9, and _-/ 
    Try again.
    
     │User ID (uid)                                ┌Additional Groups───────────┐ │
     │5002▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│[ ] client1                 ┬ │
     │Home Directory                               │[ ] ispapps                 │ │
     │<nts/client1/web1/./home/npsxweb1▒[Browse...]│[ ] ispconfig               ┴ │
     │ [x] Move to New Location                    │[ ] sshusers                │ │
     │[ ] Use Encrypted Home DirectDirectory Size i│[ ] users                   │ │
     │                                             │[ ] vmail                   │ │
     │Additional User Information                  │[ ] at                      │ │
     │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│[ ] audio                   │ │
     │Login Shell                                  │[ ] bin                     │ │
     │/usr/sbin/jk_chrootsh▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒â│[ ] cdrom                   │ │
     │Default Group                                │[ ] console                 │ │
     │client1▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒â└────────────────────────────┘ │
    
    and below is what 'npsxweb2' details are and once again, 'npsxweb2' seems to be working now:

    Code:
     │User ID (uid)                                ┌Additional Groups───────────┐ │
     │5002▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│[ ] client1                 ┬ │
     │Home Directory                               │[ ] ispapps                 │ │
     │/srv/www/clients/client1/web1▒▒▒▒▒[Browse...]│[ ] ispconfig               ┴ │
     │ [x] Move to New Location                    │[ ] sshusers                │ │
     │[ ] Use Encrypted Home DirectDirectory Size i│[ ] users                   │ │
     │                                             │[ ] vmail                   │ │
     │Additional User Information                  │[ ] at                      │ │
     │▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│[ ] audio                   │ │
     │Login Shell                                  │[ ] bin                     │ │
     │/bin/bash▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒â│[ ] cdrom                   │ │
     │Default Group                                │[ ] console                 │ │
     │client1▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒â└────────────────────────────┘ │
    
    I was thinking about cloning 'npsxweb2' details to 'npsxweb1' but I just want to hear the thoughts from you experts.
     
    Last edited: May 11, 2011
  2. falko

    falko Super Moderator Howtoforge Staff

    Not sure if this is the reason, but do you use passwords longer than eight characters?
     
  3. briand0713

    briand0713 New Member

    it was 8 chars exactly.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you mix up FTPS and SFTP protocols. You tried to login with sftp (which is a ssh based protocol and not a FTP based) into a jailed SSH account. But SFTP is not supported for jails, in a jail you can only login with a terminal client like putty. To transfer files, create a FTP account intstead and use a FTP client.

    Please create a FTP account (not SSH account) and login with FTP or if you want a encrypted login use ftps (FTPS is a FTP based ssl login while SFTP what you used is a ssh based protocol for file transfers).

    If you want to login by ssh, then use a terminal client like putty.
     

Share This Page