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/FTP) Cannot connect server

Discussion in 'General Discussion' started by Sametto Chan, Dec 9, 2016.

Tags:
  1. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    178
    Likes Received:
    15
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    I tried login my vps server with SFTP and FTP root.

    Status: Connecting to xx.xx.xx.xx...
    Response: fzSftp started, protocol_version=7
    Command: open "root@xx.xx.xx.xx" 22
    Command: Trust new Hostkey: Once
    Command: Pass: ******************
    Error: Authentication failed.
    Error: Critical error: Could not connect to server

    - Removed -

    TLS Encryption Support: Optional

    Allow Logins with Root Password: Yes

    That happens nothing... :(
     
    #1 Sametto Chan, Dec 9, 2016
    Last edited by a moderator: Dec 11, 2016
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you using correct login details ? Also check your server logs files and update here if you are getting any error in logs file.
     
  3. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    178
    Likes Received:
    15
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yeah, it's same from WHM was works fine login, but not sftp/ssh.

    Where i find this from WHM?
     
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    543
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    What is the SSH port of your server ? Might be SSH root login is disabled for your server and due to that you are facing this issues. Please login your server through KVM console and check it.
     
  5. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    178
    Likes Received:
    15
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    It's is 22.

    Nope, it's is enabled. But i have to login host it's called (TransIP) Control Panel by OpenSSH or PuTTY, i can't find what this about well. Here

    - Removed. Please attach images to your post -

    KVM console? What is about?
     
    #5 Sametto Chan, Dec 11, 2016
    Last edited by a moderator: Dec 11, 2016
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,296
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Please review the document below to ensure you are configuring your SFTP client correctly:

    How to Configure Your SFTP Client - cPanel Knowledge Base - cPanel Documentation

    Keep in mind SFTP is essentially FTP over the SSH protocol. FTP is it's own protocol, so the settings you change for FTP won't affect the SFTP service. For instance, if you have password authentication disabled for SSH, it's also disabled for SFTP. Review the /var/log/secure log file when SFTP authentication fails to see if you notice any specific error messages.

    Thank you.
     
  7. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    178
    Likes Received:
    15
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    That happens, i just solved from my friend edited by /etc/ssh/sshd_conf,

    SFTP connection and root is enabled.

    If i enable the CSF won't be connect SFTP/FTP, SSH same, Also Website is 403 forbidden.

    I disabled CSF has nothing.
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,296
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    What is output to the /var/log/secure log file when SFTP access fails?

    Thank you.
     
  9. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    178
    Likes Received:
    15
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    Oh alright, You would to know about? It's fine, i uploaded file here.
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,204
    Likes Received:
    1,296
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I removed the attachment because it includes your server's IP address, however it looks like authentication failed due to a bad username/password. Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here and we will update this thread with the outcome.

    Thank you.
     
    Samet Chan likes this.
  11. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    178
    Likes Received:
    15
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    I know much about XenForo signature, thread, etc more :)

    Thanks for help! I will create support later. You can solved this thread.
     
  12. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    404
    Likes Received:
    2
    Trophy Points:
    143
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Twitter:
    is cphulkd enabled in your server and may be your ip is having some login restrictions now ?
     
  13. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    178
    Likes Received:
    15
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yeah, i have enabled this from Security Advisor say me.

    And yes, i did login was works fine, my friend was fixed edited from /etc/ssh/sshd_conf "PermitRootLogin yes" can be access SFTP/SSH now.
     
    cPanelMichael likes this.
  14. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    404
    Likes Received:
    2
    Trophy Points:
    143
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
    Twitter:
    Glad you got it sorted :)
     
    Samet Chan likes this.
  15. Sametto Chan

    Sametto Chan Well-Known Member

    Joined:
    Jun 24, 2016
    Messages:
    178
    Likes Received:
    15
    Trophy Points:
    93
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thank you!

    I have to disable the root access, My friend just create new one username with SSH and SFTP, my friend and me trying to secure vps server more, will never be hacked against. :)
     

Share This Page