====== Login ohne Key Checking ====== Macht ssh-rsa wieder funktionsfähig (Ubuntu 22.04...), checkt keine Keys und sucht vorhanden im Schwarzen Loch ;-) ssh -o HostKeyAlgorithms=+ssh-rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubnt@192.168.1.20 ===== SSH ===== Based on: https://community.hetzner.com/tutorials/securing-ssh StrictHostKeyChecking no kein Key Checking in config Include /etc/ssh/sshd_config.d/*.conf Port 22 MaxAuthTries 2 AllowTcpForwarding no X11Forwarding no AllowAgentForwarding no # root login verbieten= no PermitRootLogin yes ClientAliveInterval 300 ClientAliveCountMax 1 PubkeyAuthentication yes PasswordAuthentication no ChallengeResponseAuthentication no UsePAM no PrintMotd no AcceptEnv LANG LC_* # override default of no subsystems Subsystem sftp /usr/lib/openssh/sftp-server Einstellungen testen: sshd -t systemctl restart sshd Fail2Ban: apt install fail2ban systemctl enable fail2ban cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local Aktuelle "Zellenbelegung" anzeigen: fail2ban-client status sshd Neue Einstellungen laden: systemctl restart fail2ban Schickes Dateien kopieren mit: https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh