Skip to content

Commit b30f566

Browse files
authored
Merge pull request #94 from majguo/master
fix failed to sign into ihs vm using ssh key
2 parents 27bd1b6 + a1b62e8 commit b30f566

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/main/arm/createUiDefinition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "Microsoft.Common.InfoBox",
1010
"options": {
1111
"icon": "Info",
12-
"text": "This offer is Bring-Your-Own-License. To deploy this offer, you must enter your registered IBM ID and your IBM ID must have active WebSphere entitlements associated with it. If provisioning fails due to lack of entitlements, ask the primary or secondary contacts for your IBM Passport Advantage site to grant you access or follow steps at <a href='https://www-112.ibm.com/software/howtobuy/passportadvantage/homepage/ecarec' target='_blank'>IBM eCustomer Care</a> for further assistance. This offer also assumes you are properly licensed to run offers in Microsoft Azure."
12+
"text": "This offer is Bring-Your-Own-License. To deploy this offer, you must enter your registered IBM ID and your IBM ID must have active WebSphere entitlements associated with it. If provisioning fails due to lack of entitlements, ask the primary or secondary contacts for your IBM Passport Advantage site to grant you access or follow steps at <a href='https://www-112.ibm.com/software/howtobuy/passportadvantage/homepage/ecarec?version=${project.version}' target='_blank'>IBM eCustomer Care</a> for further assistance. This offer also assumes you are properly licensed to run offers in Microsoft Azure."
1313
}
1414
},
1515
{

src/main/arm/mainTemplate.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,17 @@
183183
"const_ihsArguments1": "[concat(' ',variables('name_dmgrVM'),' ',parameters('ihsUnixUsername'),' ',parameters('ihsAdminUsername'),' ',parameters('ihsAdminPassword'),' ',variables('name_storageAccount'))]",
184184
"const_ihsArguments2": "[concat(' ',variables('name_share'),' ',variables('const_mountPointPath'))]",
185185
"const_ihsDnsLabelPrefix": "[concat(parameters('ihsDnsLabelPrefix'), take(replace(parameters('guidValue'),'-',''),6))]",
186+
"const_ihsLinuxConfiguration": {
187+
"disablePasswordAuthentication": true,
188+
"ssh": {
189+
"publicKeys": [
190+
{
191+
"path": "[concat('/home/', parameters('ihsUnixUsername'), '/.ssh/authorized_keys')]",
192+
"keyData": "[parameters('ihsUnixPasswordOrKey')]"
193+
}
194+
]
195+
}
196+
},
186197
"const_linuxConfiguration": {
187198
"disablePasswordAuthentication": true,
188199
"ssh": {
@@ -604,7 +615,7 @@
604615
"computerName": "[variables('name_ihsVM')]",
605616
"adminUsername": "[parameters('ihsUnixUsername')]",
606617
"adminPassword": "[parameters('ihsUnixPasswordOrKey')]",
607-
"linuxConfiguration": "[if(equals(parameters('ihsAuthenticationType'), 'password'), json('null'), variables('const_linuxConfiguration'))]",
618+
"linuxConfiguration": "[if(equals(parameters('ihsAuthenticationType'), 'password'), json('null'), variables('const_ihsLinuxConfiguration'))]",
608619
"customData": "[base64(concat(parameters('ibmUserId'), ' ', parameters('ibmUserPwd')))]"
609620
},
610621
"networkProfile": {

0 commit comments

Comments
 (0)