How to connect by FTP to a ubuntu LXC

k1ngstire1

Member
Sep 5, 2019
7
1
8
32
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!