你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
LinuxUserConfiguration.SshPrivateKey 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置用户帐户的 SSH 私钥。
[Newtonsoft.Json.JsonProperty(PropertyName="sshPrivateKey")]
public string SshPrivateKey { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="sshPrivateKey")>]
member this.SshPrivateKey : string with get, set
Public Property SshPrivateKey As String
属性值
- 属性
-
Newtonsoft.Json.JsonPropertyAttribute
注解
私钥不得受密码保护。 当池的 enableInterNodeCommunication 属性为 true 时,私钥用于自动为 Linux 池中节点之间的 SSH 配置基于非对称密钥的身份验证, (如果 enableInterNodeCommunication 为 false) ,则忽略该属性。 它通过将密钥对放入用户的 .ssh 目录来执行此操作。 如果未指定,则不会在节点之间配置无密码 SSH, () 不修改用户的 .ssh 目录。