📜  导出 SSH 身份验证密钥 - Shell-Bash 代码示例

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

代码示例1
export USER_AT_HOST="your-user-name-on-host@hostname"
export PUBKEYPATH="$HOME/.ssh/id_rsa.pub"

ssh-copy-id -i "$PUBKEYPATH" "$USER_AT_HOST"