SSH Config
nano /root/.ssh/config
.ssh/config:
Host storagebox
Hostname u12345.your-storagebox.de
Port 23
User u12345
IdentityFile /root/.ssh/id_admin_ed25519
ODER
IdentityFile /config/ssh_keys/id_admin_ed25519
JE NACHDEM WO DER SSH-KEY LIEGT!
wenn dannn noch WARNING UNPROTECTED PRIVATE KEY FILE Meldung kommt, einfach
chown 600 /config/ssh_keys/id_admin_ed25519
Weiteres Beispiel für eine .ssh/config:
Host gitlab.blentwurg.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/gitlab.pub
Host git.MEINEDOMAIN.com
HostName git.MEINEDOMAIN.com
Port 222
User git
IdentityFile ~/.ssh/id_rsa
oder
Host hz-01
HostName hetzner-01.DOMAIN.de
IdentityFile ~/.ssh/id_pl-admin_ed25519
User root
Host hz-02
HostName hetzner-02.DOMAIN.de
IdentityFile ~/.ssh/id_pl-admin_ed25519
User root
Host hz-03
HostName hetzner-03.DOMAIN.de
IdentityFile ~/.ssh/id_pl-admin_ed25519
User root
Host mini-01-hws
HostName 192.168.200.11
IdentityFile ~/.ssh/id_rsa_eiketower.ppk
User pl-admin
Host mini-02-fbs
HostName 10.53.1.5
IdentityFile ~/.ssh/id_rsa_eiketower.ppk
User pl-admin
Host mini-03-sps
HostName 10.26.1.5
IdentityFile ~/.ssh/id_rsa_eiketower.ppk
User pl-admin
vorher
chmod 600 ~/.ssh/id_rsa_eiketower.ppk
chmod 600 ~/.ssh/id_pl-admin_ed25519
No Comments