Skip to content

Commit 7f9e511

Browse files
committed
update reference to public key
1 parent fa470aa commit 7f9e511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ec2/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export class Ec2ConnectionManager {
243243
const sshPubKey = await sshKeyPair.getPublicKey()
244244

245245
const remoteAuthorizedKeysPaths = `/home/${remoteUser}/.ssh/authorized_keys`
246-
const command = `echo "${sshKey}" > ${remoteAuthorizedKeysPaths}`
246+
const command = `echo "${sshPubKey}" > ${remoteAuthorizedKeysPaths}`
247247
const documentName = 'AWS-RunShellScript'
248248

249249
await this.ssmClient.sendCommandAndWait(selection.instanceId, documentName, {

0 commit comments

Comments
 (0)