How Can We Help?
Enable SSH on a Proxmox container
When setting up a Proxmox (Debian) container it mostly comes with an OpenSSH server, however, the root user that Proxmox creates is not able to use it. This article will explain how to enable SSH access for this user.
Enable SSH
On your Proxmox (Debian) container, open /etc/ssh/sshd_config
. Locate the PermitRootLogin
key or add it with the following configuration:
PermitRootLogin yes
Save the file and restart the OpenSSH server using systemctl restart sshd
.
Now you are able to access your container using the root user which Proxmox added to the container.
Connect to SSH
SSH connections are two folded, you can either open a shell connection to the SSH server or you can open a file transfer session, also known as SFTP.
For Windows machines, you can use Putty (putty.org) for shell connections and WinSCP (winscp.net) for file transfers.
For Linux machines it is a bit simpler, you can simply connect using the ssh command for a shell connection. To utilize a file transfer you can use SFTP in Nautulis, by using sftp://root@x.x.x.x
.
4 Responses
I admire the method in which you present ideas. Thanks for sharing this informative post with your readers.
Your blog holds my attention throughout. I find myself pulled into every word you write.
Your writing resonates with me on a deep level. It’s like you’re writing for me!
I’ve added your website to my favorites; keep up the excellent content!