Anpassen des Debian Templates: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 40: Zeile 40:
 
;Auf dem KIT Host anfügen
 
;Auf dem KIT Host anfügen
 
*vim ~/.ssh/config
 
*vim ~/.ssh/config
  Host ns
+
  Host <span style="color:red">'''SHORT'''</span>
   Hostname 10.88.2XX.21
+
   Hostname <span style="color:red">'''IP'''</span>
 
   ProxyJump kit@fw
 
   ProxyJump kit@fw
 
;PubKey Übertragung
 
;PubKey Übertragung
*ssh-copy-id ns
+
*ssh-copy-id <span style="color:red">'''SHORT'''</span>
Danach könnt ihr euch mit '''ssh servername''' passswortlos einlogen
+
Danach könnt ihr euch mit '''ssh <span style="color:red">'''SHORT'''</span>''' passswortlos einlogen

Version vom 30. März 2026, 06:49 Uhr

Hostname

  • hostnamectl hostname NS

Netzwerk

  • vim /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
iface enp0s3 inet static 
 address IP/CIDR
 gateway GW

Namerserver

  • vim /etc/resolv.conf
nameserver NS
search DOM

Hosts

  • vim /etc/hosts
127.0.0.1	localhost
127.0.1.1	FQDN SHORT

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Reboot

  • systemctl reboot

JumpHost

Auf dem KIT Host anfügen
  • vim ~/.ssh/config
Host SHORT
 Hostname IP
 ProxyJump kit@fw
PubKey Übertragung
  • ssh-copy-id SHORT

Danach könnt ihr euch mit ssh SHORT passswortlos einlogen