How do I SSH into an LXC like Homepage #318
-
I know this is probably elementary, but how do I SSH into my LXCs? I installed homepage for example and when I try to SSH root@IPADDR, it asks for a password. In proxmox, the script autologs me in as root for this LXC in the console, so I don't know the password. Any advice? Thanks! Edit: I suppose I could SSH into proxmox itself, then jump down into the container to do my work. Just thought there might be a way to go right to the container. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
LXCs Install scripts have defaults set to NO when it comes to "allow SSH" at all. |
Beta Was this translation helpful? Give feedback.
-
Might be I'm not fully grasping the question, but from my experience I always had a chance to ssh with tailscale installed (also nicer to not require it to be open to the net). Plus, the script to allow tailscale to run in a LXC makes it a breeze to run. |
Beta Was this translation helpful? Give feedback.
LXCs Install scripts have defaults set to NO when it comes to "allow SSH" at all.
Debian has a file here nano /etc/ssh/sshd_config - that has some config, so you can very well allow login directly into an LXC with the LXCs IP adress/hostname and its user:password combination, or limit logging in to keys. (Create keys on your local machine, then copy them to proxmox, then lxc push them to the lxcs you'd want to login without password and keep it locked down somewhat)