📜  debian ssh authorized_keys - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:35.304000             🧑  作者: Mango

代码示例1
cat ~/.ssh/id_rsa.pub | ssh remote_username@server_ip_address "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"