955 B
955 B
volume, section, title, author, source
volume | section | title | author | source |
---|---|---|---|---|
Decentrala | 6 | Access Linux Containers in Moxx over `ssh` | Malin | dmz.rs |
Access moxx
, the Proxmox machine:
- Check you can access the creds in
dmzadmin
:gpg -d credentials/kralizec/ssh11.gpg
. - Check the creds work:
ssh dmz.rs ls
. - Copy your ssh keys across:
ssh-copy-id -i ~/id_selected dmz.rs
. - Check that works:
test $(ssh dmz.rs hostname) = ssh11
- Find
moxx
' IP address in its credentials:moxxIP=[ user ]@[ local ip ]
- Jump through
ssh11
to accessmoxx
:ssh -J user@dmz.rs $moxx_ip
Enter Containers
Use pct
to find and access containers:
pct list | grep -v stopped
pct enter 112
- Don't tell people to type 'pct enter', or they will type
pct
, and hit the enter key I TOLD YOU ALL THE KEY SHOULD BE CALLED RETURN. - Now you're in the container.
Just for Fun
pct list | grep -v VMID |\
column -J -N vmid,state,current,name | less -R