Compare commits
5 Commits
24a8122222
...
master
Author | SHA1 | Date | |
---|---|---|---|
cdeecc2335
|
|||
ee67175267
|
|||
713ae20355
|
|||
52b49188f2
|
|||
7e8898b341
|
@@ -15,6 +15,7 @@ ISP: Yettel
|
||||
|
||||
name: moxx
|
||||
location: kralizec
|
||||
local_access: 192.168.1.200:8006
|
||||
|
||||
name: Serverko
|
||||
location: krov
|
||||
@@ -35,6 +36,10 @@ proxies: dmzrs
|
||||
name: LDAP
|
||||
host: moxx
|
||||
|
||||
name: dmzrs
|
||||
host: moxx
|
||||
note: hosts the dmz.rs website
|
||||
|
||||
name: website
|
||||
host: moxx
|
||||
authqueries: LDAP
|
||||
|
36
setup/ssh_to_lxc.md
Normal file
36
setup/ssh_to_lxc.md
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
volume: Decentrala
|
||||
section: 6
|
||||
title: Access Linux Containers in Moxx over `ssh`
|
||||
author: Malin
|
||||
source: dmz.rs
|
||||
---
|
||||
|
||||
Access `moxx`, the Proxmox machine:
|
||||
|
||||
1. Check you can access the creds in `dmzadmin`: `gpg -d credentials/kralizec/ssh11.gpg`.
|
||||
2. Check the creds work: `ssh dmz.rs ls`.
|
||||
3. Copy your ssh keys across: `ssh-copy-id -i ~/id_selected dmz.rs`.
|
||||
4. Check that works: `test $(ssh dmz.rs hostname) = ssh11`
|
||||
5. Find `moxx`' IP address in its credentials: `moxxIP=[ user ]@[ local ip ]`
|
||||
6. Jump through `ssh11` to access `moxx`: `ssh -J user@dmz.rs $moxx_ip`
|
||||
|
||||
|
||||
# Enter Containers
|
||||
|
||||
Use `pct` to find and access containers:
|
||||
|
||||
```sh
|
||||
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
|
||||
|
||||
```sh
|
||||
pct list | grep -v VMID |\
|
||||
column -J -N vmid,state,current,name | less -R
|
||||
```
|
Reference in New Issue
Block a user