The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    206
    Likes Received:
    1
    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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is he logging in with his cPanel username, or an addon FTP account?
     
  3. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    206
    Likes Received:
    1
    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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    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
     
  5. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    206
    Likes Received:
    1
    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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  7. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    206
    Likes Received:
    1
    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:
    15,618
    Likes Received:
    296
    Trophy Points:
    433
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Good news then. Thanks for updating the thread.
     
Loading...

Share This Page