環境:客戶端 192.168.0.5 → 服務端 192.168.0.10(root 用戶)。
ssh-keygen -t rsa
# 一路回車,生成 ~/.ssh/id_rsa (私鑰) 和 id_rsa.pub (公鑰)
ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.10
# 輸入一次密碼,公鑰自動追加至服務端 ~/.ssh/authorized_keys
ssh root@192.168.0.10
# 應直接進入無需密碼
/etc/ssh/sshd_config 確保 PubkeyAuthentication yes、AuthorizedKeysFile .ssh/authorized_keyschmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keysrestorecon -Rv ~/.sshLinux Shell 進制轉換完全指南:二進制/八進制/十六進制/Base64 互轉實戰
Fedora Linux 編譯安裝 Apache httpd 解決 apr/apr-util 缺失報錯實戰
Linux top 指令中 TIME/TIME+ 欄位含義深度解讀
Linux mount 指令大全:ISO、USB、Windows共享、NFS 掛載實戰
VMware Shared Folders 實現 Windows 宿主機與 Linux 客體機檔案互傳完整設定
VCS 雙機切換失敗:陣列裝置無法卸載導致資源組 Faulted 排查實錄