harbor run -t LiteCoder/ssh-keys-gpg-backup-setupharbor download LiteCoder/ssh-keys-gpg-backup-setupSet up secure SSH access and implement a GPG-based encrypted backup system for sensitive configuration files.
openssh and gpg (GnuPG 2.x) available/app/SecurePass2024!/app/ssh_keys/id_rsa/app/ssh_keys/id_rsa.pub600.644./app/ssh_config/sshd_config.PermitRootLogin noPasswordAuthentication noPubkeyAuthentication yesProtocol 2MaxAuthTries 3AllowUsers admin600./app/sensitive_data/.database.conf — must contain at least the keys db_host, db_port, db_user, and db_password (one per line, in key=value format).api_keys.conf — must contain at least the keys api_key and api_secret (one per line, in key=value format).server.conf — must contain at least the keys server_ip, server_port, and server_user (one per line, in key=value format).BackupAdminbackup@example.comGPGBackup2024!/app/gpg_keys/backup_public.gpg./app/gpg_keys/backup_secret.gpg./app/sensitive_data/ directory.BackupAdmin key (recipient: backup@example.com)./app/backups/sensitive_backup.tar.gpg.gpg --list-packets or file command)./app/backups/sensitive_backup.tar.gpg using the GPG private key and passphrase GPGBackup2024!./app/backups/restored/./app/backups/restored/ must contain the original files (database.conf, api_keys.conf, server.conf) with content identical to the originals in /app/sensitive_data/./app/docs/security_report.txt.SSH Key Generation — describe key type and size usedSSH Daemon Configuration — list security directives appliedGPG Encryption — describe encryption method and key detailsBackup Process — describe how the backup was created and verifiedSecurity Measures — summarize overall security practices applied