Hello friends, I am new to the community. I come from vestacp and I just installed everything on Debian 9 and apparently everything is fine. The only thing is that when I try to connect using FTP it does not leave me.
and read in some comments that activating sftp but still doesn’t let me know what happens?
i used filezilla
sftp- ssh file transfer protocol port 21
Thank you very much for answering so fast this community gives a very good impression
config admin user:
ssh access = nologin
--------------- filezilla error —
Authentication failed.
The server has rejected the SFTP connection, but does listen to FTP connections.
with port 22.
Error: Server unexpectedly closed network connection
Error: Could not connect to server
-Check if ssh access is allowed to the server :8083/list/firewall/
-Make sure your ip wasn’t blocked by fail2ban ( :8083/list/firewall/banlist/ )
if it was, remove it from Hestia and if it still rejects your connection, login to the server and run:
sudo su -
v-delete-firewall-ban 1.2.3.4 HESTIA
fail2ban-client stop sshd
It’s most probably firewall related issue as @Lupu suggested.
Also you can try to create a new user - be it “nologin” or “bash” doesn’t really matter. With “nologin” - you will only get chrooted SFTP environment thanks to internal-sftp subsystem.
Nov 13 10:05:57 mycompany sshd[20826]: Accepted password for admin_kauppa from 84.253.216.108 port 16565 ssh2
Nov 13 10:05:57 mycompany sshd[20826]: pam_unix(sshd:session): session opened for user admin_kauppa by (uid=0)
Nov 13 10:05:57 mycompany systemd-logind[710]: New session 37037 of user admin.
Nov 13 10:05:57 mycompany systemd: pam_unix(systemd-user:session): session opened for user admin by (uid=0)
Nov 13 10:05:57 mycompany sshd[20969]: fatal: bad ownership or modes for chroot directory component “/home/admin/”
Nov 13 10:05:57 mycompany sshd[20826]: pam_unix(sshd:session): session closed for user admin_kauppa
Nov 13 10:05:57 mycompany systemd-logind[710]: Removed session 37037.
Nov 13 10:06:01 mycompany CRON[20977]: pam_unix(cron:session): session opened for user admin by (uid=0)
Nov 13 10:06:01 mycompany sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Nov 13 10:06:01 mycompany sudo: pam_unix(sudo:session): session closed for user root
Nov 13 10:06:01 mycompany CRON[20977]: pam_unix(cron:session): session closed for user admin
Nov 13 10:06:19 mycompany sshd[21007]: Accepted password for root from 84.253.216.108 port 16567 ssh2
Nov 13 10:06:19 mycompany sshd[21007]: pam_unix(sshd:session): session opened for user root by (uid=0)
Nov 13 10:06:19 mycompany systemd-logind[710]: New session 37040 of user root.
Nov 13 10:06:35 mycompany sshd[21078]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=112.85.42.187 user=root
Nov 13 10:06:38 mycompany sshd[21078]: Failed password for root from 112.85.42.187 port 59756 ssh2
syslog says:
Nov 13 10:05:57 mycompany systemd[1]: Started User Manager for UID 1000.
Nov 13 10:05:57 mycompany systemd[1]: Stopping User Manager for UID 1000…
Nov 13 10:05:57 mycompany systemd[20828]: Stopped target Default.
Nov 13 10:05:57 mycompany systemd[20828]: Stopped target Basic System.
Nov 13 10:05:57 mycompany systemd[20828]: Stopped target Paths.
Nov 13 10:05:57 mycompany systemd[20828]: Stopped target Sockets.
Nov 13 10:05:57 mycompany systemd[20828]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Nov 13 10:05:57 mycompany systemd[20828]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Nov 13 10:05:57 mycompany systemd[20828]: Closed GnuPG cryptographic agent and passphrase cache.
Nov 13 10:05:57 mycompany systemd[20828]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Nov 13 10:05:57 mycompany systemd[20828]: Closed GnuPG network certificate management daemon.
Nov 13 10:05:57 mycompany systemd[20828]: Reached target Shutdown.
Nov 13 10:05:57 mycompany systemd[20828]: Starting Exit the Session…
Nov 13 10:05:57 mycompany systemd[20828]: Stopped target Timers.
Nov 13 10:05:57 mycompany systemd[20828]: Received SIGRTMIN+24 from PID 20970 (kill).
Nov 13 10:05:57 mycompany systemd[1]: Stopped User Manager for UID 1000.
Nov 13 10:05:57 mycompany systemd[1]: Removed slice User Slice of admin.
Nov 13 10:06:01 mycompany CRON[20978]: (admin) CMD (sudo /usr/local/hestia/bin/v-update-sys-queue restart)
Nov 13 10:06:19 mycompany systemd[1]: Started Session 37040 of user root.
The auth.log error seems to be related but don’t know how to fix it.