SSH配置
HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key Port 2222 SyslogFacility AUTHPRIV PermitRootLogin without-password AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication no ChallengeResponseAuthentication no GSSAPIAuthentication no GSSAPICleanupCredentials no UsePAM yes X11Forwarding no PrintMotd no UseDNS no AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE AcceptEnv XMODIFIERS
SSH公钥 .ssh/authorized_keys
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKXnN/76Vp+A7aBDfREPvhQty3ZdzLvyUcBU7DcrcYfg portal
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBNQs5wHsLYeO2maaA3CP4hYV81ndOk3PanWRU8CO/Kz5NgfHNKSclE95eLFpkEsDbqqU2STnf/uQVDuu/sUjKs= memory@lvtao
目录权限处理
chmod 700 ~/.ssh
文件权限处理
chmod 600 ~/.ssh/authorized_keys ~/.ssh/id_ecdsa