WebSite X5Help Center

 
Nigel A.
Nigel A.
User

Problem getting ftp to work on new server.  en

Auteur : Nigel A.
Visité 977, Followers 1, Partagé 0  

I've just rebuilt my server using Debian 20 / ProFTPd / NGinx web server ....

Try as I might I can not get the FTP to connect to the server / web sites, always get the message "Unable to connect to server". I've tried every combination of options in the FTP Parameters.

So I loaded Filezilla on to my PC to see if I had any meaningful messages as to why this is happening. BUT Filezilla connected immediatly no matter which web site I tried it on, here is the output.

Status: Disconnected from server
Status: Connecting to 192.168.1.1:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Status: Directory listing of "/" successful
Status: Connection closed by server

(and in the bottom right panel all the files are listed from the web site.)

I'm using the same name / password and even tried using port 21 as mentioned above.

(I also have the excact same issue with Jalbum).

Nigel.

Here are the unhelpful (to me) messages from ProFTPd log.

FTP no transfer timeout, disconnected
--- cut --- : client sent SSH2 command 'SSH-2.0-RebexSSH_5.0.8348.0', disconnecting
--- cut --- : client sent SSH2 command 'SSH-2.0-RebexSSH_5.0.8348.0', disconnecting
--- cut --- : client sent SSH2 command 'SSH-2.0-RebexSSH_5.0.8348.0', disconnecting

Posté le
1 RéPONSES - 1 CORRECT
Nigel A.
Nigel A.
User
Auteur

Before giving up, I noticed that proFTPd had something called the Virtual Server. (Which I do not believe that it had in my old server version)

I changed the ip to my internal gateway (192.168.1.1), made sure file overwrite was Yes ... it worked.

If anyone else runs into this issue, in /etc/proftpd find the file that has virtual servers (I use VirtualMin as my IT helper) so file names / locations may be different on your machine. Here is my config:

In webSite X5 FTP and Parameters:

SFTP - SSH File Transfer Protocol

Port: 2222

<VirtualHost 192.168.1.1>
SFTPEngine on
SFTPLog /var/log/proftpd/sftp.log

# Configure the server to listen on 2222 (openssh owns 22)
Port 2222

# Configure the RSA and ECDSA host keys, using the same host key
# files that OpenSSH uses.
SFTPHostKey /etc/proftpd/ssh_host_rsa_key
SFTPHostKey /etc/proftpd/ssh_host_ecdsa_key

# Configure the file used for comparing authorized public keys of users.
SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys

# Enable compression
SFTPCompression delayed

# More then FTP max logins, as there are more ways to authenticate
# using SSH2.
MaxLoginAttempts 6
AllowOverwrite on
</VirtualHost>

Lire plus
Posté le de Nigel A.