How to connect by FTP to a ubuntu LXC

k1ngstire1

Member
Sep 5, 2019
7
1
8
33
Hello.
I am able to connect to the host by filezilla as root and my proxmox password.

I am not able to connect to a ubuntu LXC by root. When i enter my LXC network IP and try to connect with sftp port 22 in filezilla it would just not establish a connection.

Authentication failed. Critical Error. Connect to Server failed.

What am i missing?
 
What am i missing?

Maybe the SSH daemon config /etc/ssh/sshd_config has the PermitRootLogin not set to yes?
Check if there's a line (without # at the beginning) like:
Code:
PermitRootLogin yes
 
As often SSH dissalows root login over SSH by default. If that line is not present, or has another value then either:
* change it to yes and restart it
* add you public key to the authorized_keys file of /root/.ssh/authorized_keys, to allow authentication via public key instead of passwords.
 
Maybe the SSH daemon config /etc/ssh/sshd_config has the PermitRootLogin not set to yes?
Check if there's a line (without # at the beginning) like:
Code:
PermitRootLogin yes

Great. That was correct. I edited /etc/ssh/sshd_config with sudo nano so i was able to add the PermitRootLogin yes Code.
Now i am able to easily connect by FTP.

Thank you very much.