Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED SFTP Using Domain Not Working

Discussion in 'General Discussion' started by ramorse, Jan 23, 2017.

Tags:
  1. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    225
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    I have a client who is trying to use SFTP. FTP works, but using the same login with SFTP authentication fails. He has a Cpanel SSL certificate on the domain through AutoSSL and sshd_config is set up to allow sftp:

    Subsystem sftp /usr/libexec/openssh/sftp-server
    /etc/ssh/sshd_config

    If I switch to the server name instead of the domain name, it works. So, that's an easy workaround. But I am curious why using the domain domain for the server name doesn't work.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is he logging in with his cPanel username, or an addon FTP account?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    225
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    He was using his Cpanel login. He created an add on FTP account and I tried using that one as a test and couldn't login using SFTP.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    SFTP is not possible for addon FTP accounts unfortunately. There's an existing Feature Request for this here if you'd like to vote on it:
    SFTP access for virtual FTP users
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    225
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    My mistake. I was connecting to the add on FTP account via FTP not SFTP. However, the question still remains. If I SFTP for the cpanel user, it works. But I have to use the server name for the host and not the user's domain.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    225
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    The client did finally get it to work after I sent him very specific settings, screen shots, the link to the documentation, etc. And I did vote up the feature request. Thank for the link.
     
    cPanelMichael likes this.
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Good news then. Thanks for updating the thread.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice