We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa470aa commit 7f9e511Copy full SHA for 7f9e511
src/ec2/model.ts
@@ -243,7 +243,7 @@ export class Ec2ConnectionManager {
243
const sshPubKey = await sshKeyPair.getPublicKey()
244
245
const remoteAuthorizedKeysPaths = `/home/${remoteUser}/.ssh/authorized_keys`
246
- const command = `echo "${sshKey}" > ${remoteAuthorizedKeysPaths}`
+ const command = `echo "${sshPubKey}" > ${remoteAuthorizedKeysPaths}`
247
const documentName = 'AWS-RunShellScript'
248
249
await this.ssmClient.sendCommandAndWait(selection.instanceId, documentName, {
0 commit comments