Metainformationen zur Seite
SSH konfigurieren
Datum 16.05.19 Quelle: https://www.thomas-krenn.com/de/wiki/OpenSSH_Public_Key_Authentifizierung_unter_Ubuntu https://www.schlittermann.de/doc/ssh.html ## Key erstellen und einsetzen
ssh-keygen -b 4096
ssh-copy-id -i .ssh/key_rsa.pub userabc@serverip
cat ~/.ssh/id_rsa.pub | ssh -i .ssh/id_rsa_proxmox userabc@serverip 'umask 077; cat >>.ssh/authorized_keys'
ssh -i .ssh/key_rsa userabc@serverip
sshd config
#sshd_config # custom: allow specifiy user AllowUsers myusername #deny root login PermitRootLogin no #deny password login PasswordAuthentication no #pubkey PubkeyAuthentication yes #aut trys MaxAuthTries 3 #config testen sudo /usr/sbin/sshd -t