简体   繁体   English

在使用 terraform 的 azure 部署中找不到私钥

[英]private key not found in azure deployment using terraform

I am trying to to create azure Linux using terraform.我正在尝试使用 terraform 创建 azure Linux。 I am able to deploy the VM perfectly.我能够完美地部署虚拟机。 but when I am trying to install some package using remote exec it get failed "Unable to read SSH key".但是当我尝试使用远程执行安装一些 package 时,它会失败“无法读取 SSH 密钥”。 As I am trying the script from my window laptop using power shell.当我使用电源 shell 尝试从我的 window 笔记本电脑上运行脚本时。

What my concern is how to call my private key for installing some packages inside connection block?我关心的是如何调用我的私钥来在连接块内安装一些包?

I got answer using the below mention method https://www.codewrecks.com/post/devops/terraform-hello-world我使用下面提到的方法https://www.codewrecks.com/post/devops/terraform-hello-world得到了答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM