📜  mdem ubuntu ssh key - Shell-Bash 代码示例

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

代码示例1
cat ~/.ssh/id_rsa.pub | ssh username@remote_host "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys && chmod -R go= ~/.ssh && cat >> ~/.ssh/authorized_keys"