PureFTP Hanging
My company is in the process of moving our clients' websites off of Amazon Web Services to CanSpace, which uses WHM and cPanel. The Drupal sites we host need to be transferred directly, and I am trying to do this via direct FTP connection. I've set up an FTP account, and a publicly accessible URL. However, when I try to make a connection, I get the following message (so long as I include -v in the command) and then it hangs:
ebug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: ssh_exchange_identification: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
debug1: ssh_exchange_identification: 220-You are user number 1 of 50 allowed.
debug1: ssh_exchange_identification: 220-Local time is now 11:18. Server port: 921.
debug1: ssh_exchange_identification: 220-IPv6 connections are also welcome on this server.
debug1: ssh_exchange_identification: 220 You will be disconnected after 15 minutes of inactivity.
-
Hey there! When you say a "direct" FTP connection, do you mean over the command line? As in, you aren't using an FTP client? If so, I would expect it to present the "name" field for you to start the login process, like this: # ftp domain.com Connected to domain.com (1.2.3.4). 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 1 of 50 allowed. 220-Local time is now 12:51. Server port: 21. 220-This is a private system - No anonymous login 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 15 minutes of inactivity. Name (domain.com:root):
If that isn't happening, you'd want to check /var/log/secure or /var/log/messages on the system to see if there are any errors related to the FTP service.0 -
Hey there! When you say a "direct" FTP connection, do you mean over the command line? As in, you aren't using an FTP client? If so, I would expect it to present the "name" field for you to start the login process, like this:
# ftp domain.com Connected to domain.com (1.2.3.4). 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 1 of 50 allowed. 220-Local time is now 12:51. Server port: 21. 220-This is a private system - No anonymous login 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 15 minutes of inactivity. Name (domain.com:root):
If that isn't happening, you'd want to check /var/log/secure or /var/log/messages on the system to see if there are any errors related to the FTP service.
Yes, I did mean command line. I've attempted to get in through scp, sftp, and ssh commands with the same result. And it appears there is no data in any log files.0 -
Can you let me know the specific FTP and SSH connection commands you're using, except for any public info like the domain or IP address? 0 -
Okay, I'm mainly adding a parameter to use the port set by cPanel (921), plus the verbose parameter to give me that feedback message. That would be ssh -v -P 921, sftp -v -p 921. 0 -
That's odd, and I'm honestly not sure - if you get the welcome banner, you should also get the rest of the prompts from the service working. Since you're using a secure connection, /var/log/secure would also be a good place to examine log data to see if there's anything interesting there. Just as a test, does the FTP connection work normally if you run it locally? You can just run "ftp localhost" from the server's command line to see if that behaves differently. If that works, that points to some type of network slowness or other external factors. If not, it might be time to open a ticket with your host, as cPanel doesn't control the SSH service or the connections on the system (as you're making a secure connection with FTP, it's really also an SSH connection, more or less). 0
Please sign in to leave a comment.
Comments
5 comments