I did a sudo apt-get update && upgrade and didn’t connect to ftp in 4-5 days so I don’t know it if it linked, but I tried anything and now I can’t connect anymore to my ftp.
Does someone has a tips to regain access to my ftp?
It is correctly listening on port 21, for firewall, what should be the right rules? I have input tcp dport 21, input -s myserverip -j Accept, input tpc multiport, and some fail2ban
Error is “Error: Unable to establish connection to server”
Yes it was already nologin, and I tried to execute v-add-user-sftp-jail withmyuser but it failed, also I connect as root, not as my user, is it wrong? (it was working like that)
One more thing: I see that you’re using port 2083 to access Hestia, so you might be using Cloudflare or another CDN.
Are you trying to access port 21 through a hostname that is proxied by the CDN? If so, try using the server’s public IP address instead, or use a hostname that points to your server but is not proxied by the CDN.
Weirdly enough i had this issue with sftp but i could ssh into the server. I actually updated the sshd_config file with other settings from my other server and it worked again.
this was a brand new server install when i had the sftp issue.
Ohhh, all right, since the beginning I was only connecting through root
It worked with my user, though /home/web/ only shows my cp.website.com folder and not the other ones (that are showing under this user on my panel when I login from the web interface)
grep ‘^root’ /etc/ftpusers
It shown root yes
What elmo said is really “talking to me” when I did sudo apt update and upgrade, I remember something changed on my sshd config !
So I did some research and I saw that Subsystem sftp internal-sftp was changed to Subsytem sftp internal-sftp-server
I removed the -server part and it’s now working again!
It turns out we were discussing FTP, when in fact we should have been focusing on SFTP, which is a completely different protocol. And that is a known bug that will be fixed in next Hestia release.
@sahsanu i replaced the sshd conf file with another server/older, to make it work. Should i need to do anything else? The problem only existed on a newly installed server.