Guides: Proxmox: SSH-Port-Konfiguration vereinfacht.
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ci/woodpecker/push/default Pipeline was successful
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ci/woodpecker/push/default Pipeline was successful
				
			This commit is contained in:
		
							parent
							
								
									fcf2d0b376
								
							
						
					
					
						commit
						82d8965840
					
				
					 1 changed files with 8 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -66,10 +66,11 @@ apt full-upgrade
 | 
			
		|||
    1. SSH-Keys hinterlegen (```/root/.ssh/authorized_keys```)
 | 
			
		||||
    2. SSHD-Konfiguration anpassen (```/etc/ssh/sshd_config```)
 | 
			
		||||
``` bash
 | 
			
		||||
# Port ändern (Port 22 wird weiterhin benötigt für die
 | 
			
		||||
# Clusterkommunikation,  kann aber später mit Firewallregeln
 | 
			
		||||
# auf die betroffenen Hosts beschränkt werden.
 | 
			
		||||
Port 1412
 | 
			
		||||
# Port 22 wird immer für die Clusterkommunikation benötigt,
 | 
			
		||||
# kann aber natürlich später mit Firewallregeln auf die
 | 
			
		||||
# betroffenen Hosts beschränkt werden. Auf jeden Fall muss Port
 | 
			
		||||
# 22 hier zusätzlich angegeben werden.
 | 
			
		||||
# Port 2222
 | 
			
		||||
Port 22
 | 
			
		||||
 | 
			
		||||
# Root-Login nur mit Key
 | 
			
		||||
| 
						 | 
				
			
			@ -90,11 +91,12 @@ X11Forwarding no
 | 
			
		|||
    1. dropbear-initramfs installieren (``` apt install dropbear-initramfs```)
 | 
			
		||||
    2. initramfs mit fester IP ausstatten (```/etc/initramfs-tools/initramfs.conf```)
 | 
			
		||||
``` bash
 | 
			
		||||
IP=192.168.1.10::192.168.1.1:255.255.255.0::enp2s0:off
 | 
			
		||||
IP=192.168.1.100::192.168.1.1:255.255.255.0::enp2s0:off
 | 
			
		||||
```
 | 
			
		||||
    2. dropbear konfigurieren (```/etc/dropbear-initramfs/config```)
 | 
			
		||||
``` bash
 | 
			
		||||
DROPBEAR_OPTIONS=-p1412
 | 
			
		||||
# z.B. -p2222 für Port 2222
 | 
			
		||||
DROPBEAR_OPTIONS=
 | 
			
		||||
```
 | 
			
		||||
    3. Keys für dropbear hinterlegen
 | 
			
		||||
``` bash
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue