Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit a228d30

Browse files
committed
Use specified username for ssh-copy-id
1 parent 1079708 commit a228d30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

op-create-identity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ else
144144
new_uuid="_local_only_$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 14 | head -n 1)"
145145
fi
146146

147-
if confirm "Copying public key to host: ssh-copy-id -i '$key_file' '$ssh_host'"; then
148-
ssh-copy-id -i "$key_file" "$ssh_host"
147+
if confirm "Copying public key to host: ssh-copy-id -i '$key_file' '$ssh_user@$ssh_host'"; then
148+
ssh-copy-id -i "$key_file" "$ssh_user@$ssh_host"
149149
fi
150150

151151
if confirm "Adding key for local use"; then

0 commit comments

Comments
 (0)