Results 1 to 10 of 10

Thread: [How To] Use SFTP in FileZilla with cPanel

  1. #1
    sergey's Avatar
    sergey is offline Technical Support
    Join Date
    Aug 2005
    Posts
    473

    Default [How To] Use SFTP in FileZilla with cPanel

    Using SFTP in FileZilla with cPanel

    Please note - this method is no longer supported on shared servers. This thread remains for reference purposes only. GlowHost recommends using FTPs instead.


    1. Open up FileZilla and click on File -> Site Manager
    2. Click on the "New". Set up your FTP connection as usual.

    Account Name: Whatever you want to call it to identify the Account
    Host: ftp.yourdomain.com ("yourdomain.com is your actual domain)
    User: your cPanel username
    Password: Your cPanel Password

    3. Next, choose the connection type "SFTP using SSH2" from the FTP connection drop-down list.

    4. Click on "Save" to save the settings.
    Last edited by Matt; 10-18-2013 at 02:20 PM.

  2. #2
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    I'm using the latest Filezilla - 3.3.2.1 and can't get an SFTP connection to work. I've tried it with port 22, without... and I get this error:

    Code:
    Status:    Connecting to 123.456.78.9...
    Response:    fzSftp started
    Command:    open "username@123.456.78.9" 22
    Command:    Pass: ************
    Status:    Connected to 123.456.78.9
    Error:    Connection closed by server with exitcode 128
    Error:    Could not connect to server
    Any suggestions?

  3. #3
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    4,280

    Default

    You might consider changing your FTP server to ProFTP I have seen problems with pureFTP server and sFTP on the latest cPanel builds.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | GlowHost's Facebook | Follow us on Twitter | GlowHost on Google+

  4. #4
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    I switched to ProFTP but still get the same error with SFTP.

  5. #5
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    4,280

    Default

    Please show use the last 20 lines of your /etc/bashrc file.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | GlowHost's Facebook | Follow us on Twitter | GlowHost on Google+

  6. #6
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    Here goes, I assume you're looking for this, lines 70 through 96:

    Code:
    #cPanel Added Limit Protections -- BEGIN
    
    #unlimit so we can run the whoami
    ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
    
    LIMITUSER=$USER
    if [ -e "/usr/bin/whoami" ]; then
            LIMITUSER=`/usr/bin/whoami`
    fi
    if [ "$LIMITUSER" != "root" ]; then
            ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
    else
            ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
    fi
    #cPanel Added Limit Protections -- END
    
    ### GlowHost ###
    alias dlog='cd /usr/local/apache/domlogs'
    alias conf='cd /usr/local/apache/conf/'
    alias myhistory='less /root/.bash_history'
    alias last='last -a'
    
    echo "$(who -m) logged IN" >> /root/.bash_history
    HISTSIZE=5000
    HISTTIMEFORMAT="%h/%m - %H:%M:%S "
    
    # End GlowHost

  7. #7
    sergey's Avatar
    sergey is offline Technical Support
    Join Date
    Aug 2005
    Posts
    473

    Default

    Remove this quoted string. Then restart the sshd service and it will solve your issue.

    echo "$(who -m) logged IN" >> /root/.bash_history

  8. #8
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    Done. Fixed. Best customer service on the Net. Right here.

    Thanks!

  9. #9
    sergey's Avatar
    sergey is offline Technical Support
    Join Date
    Aug 2005
    Posts
    473

    Default

    Thanks for the kind words.

  10. #10
    omarfilip's Avatar
    omarfilip is offline Nearly a Master Glow Jedi
    Join Date
    Jan 2008
    Location
    Dallas, TX
    Posts
    127

    Default

    This is just my subjective observation, but ProFTP seems to be faster than the pureFTP server, too.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17