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"