Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    3

    Default Can't Connect Using FTP Account (SFTP)

    I created an FTP account (cPanel --> FTP Accounts --> Create), but I can't seem to connect using the login information. Of course, I use SFTP (regular FTP is unacceptable since passwords are sent in clear text). I tried Fugu on a Mac and FileZilla on both a Mac and a Windows PC without success.

    My searching around indicates that cPanel does not support SFTP for FTP accounts.

    A feature that forces passwords to be transmitted in clear test seems foolish. If users choose to be foolish on their own, so be it. But forcing users to be foolish is another story.

    It's peculiar that the "Configure FTP Client" feature displays the FTP username, FTP server name, and SFTP port (22). If cPanel does not actually support SFTP for such accounts, this seems like a bug. Why show the SFTP port number if SFTP is not supported?

    Did I simply miss a really obvious checkbox somewhere or do FTP accounts in cPanel force users to transmit their passwords without any encryption at all?

  2. #2
    Member
    Join Date
    Nov 2004
    Location
    Earth
    Posts
    151

    Default

    You need to give that user shell access I believe. You could use a client like FileZilla for FTP over TLS. You won't get secure data transport, but you can get secure auth.

  3. #3
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by bornonline View Post
    You need to give that user shell access I believe.
    No. It's been a while now that cPanel allows SFTP connection by default, without shell access.
    Only the cpanel user can connect through SFTP, though
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  4. #4
    Member
    Join Date
    Apr 2007
    Posts
    59

    Default

    Quote Originally Posted by yapluka View Post
    No. It's been a while now that cPanel allows SFTP connection by default, without shell access.
    Only the cpanel user can connect through SFTP, though
    Really? I am receiving:

    Invalid user user@domain.tld from ::ffff:xxx.xxx.xxx.xxx
    Feb 6 10:49:41 tm sshd[13268]: input_userauth_request: invalid user user@domain.tld

    this user is the main account and I have shall access disabled. Is there any other reason this wouldn't work?

    Thanks

  5. #5
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Morley View Post
    Really? I am receiving:

    Invalid user user@domain.tld from ::ffff:xxx.xxx.xxx.xxx
    Feb 6 10:49:41 tm sshd[13268]: input_userauth_request: invalid user user@domain.tld

    this user is the main account and I have shall access disabled. Is there any other reason this wouldn't work?

    Thanks
    You need to use the cpanel username : "user" and not "user@domain.tld"
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  6. #6
    Member
    Join Date
    Apr 2007
    Posts
    59

    Default

    Quote Originally Posted by yapluka View Post
    You need to use the cpanel username : "user" and not "user@domain.tld"
    So to be clear, only the cpanel main user can sftp via ssh2, and any ftp users you add cannot?
    Seems strange because cPanel gives you instructions on how to set accounts up via SFTP, but it doesn't work. I thought it was because there's no shell access for this account but I am reading otherwise. Would someone clarify this?

    BTW, I am able to SFTP as the main user for this account but I'd like to do the same or added accounts.

    Thanks for the reply

  7. #7
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    Quote Originally Posted by Morley View Post
    BTW, I am able to SFTP as the main user for this account but I'd like to do the same or added accounts.
    You just can't. SFTP is based off of SSH. SSH is accessible only by server level accounts, i.e. accounts that exist on the server. FTP users that you create in your control panel are just virtual users tied to that particular account. This is why their FTP username have the @yourdomain.com appended to them.

    SSH will only work for usernames that are listed in the /etc/passwd file. These are server level accounts, accounts recognized by the server as existing. As far as the server is concerned joe@yourdomain.com is not a valid user. This part is only understood by the FTP daemon once you connect.

    I suppose you could write an intermediate SSH daemon to handle this level of functionality for the SSH service. That would be the only way to allow these sub users access to SSH.

  8. #8
    Member
    Join Date
    Apr 2007
    Posts
    59

    Default

    Thanks for the clarification, this is clear to me now.

  9. #9
    Member kazar's Avatar
    Join Date
    May 2008
    Location
    NYC/Earth
    Posts
    14

    Default Re: Can't Connect Using FTP Account (SFTP)

    I just want to point out that for the cpanel user, the sftp configuration file (at least the one for Cyberduck) does not succeed because it prepopulates username@domain.com instead of just username.

    Thanks to the folks on this thread I finally learned I need to delete the @domain.com portion of the username string in order to successfully log in.

    kazar

Similar Threads & Tags
Similar threads

  1. Unable to connect to FTP with login account@examle.xx in WHM/Cpanel.
    By shuk007 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-16-2009, 05:02 AM
  2. SFTP instead of FTP?
    By mealto in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-12-2008, 06:29 PM
  3. FTP vs SFTP
    By BraveX in forum New User Questions
    Replies: 3
    Last Post: 05-24-2007, 11:02 AM
  4. Using SFTP for all FTP accounts?
    By jez9999 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-06-2007, 04:24 AM
  5. Replies: 4
    Last Post: 10-13-2005, 06:43 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube