Use correct pathing and improve CLI tip

This commit is contained in:
miampf 2025-02-05 16:59:41 +01:00
parent ff142be322
commit 0f935a80c8
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ func writeCertificateForKey(cmd *cobra.Command, keyPath string, fh file.Handler,
if err := fh.Write(fmt.Sprintf("%s/ca_cert.pub", constants.TerraformWorkingDir), ssh.MarshalAuthorizedKey(&certificate), file.OptOverwrite); err != nil {
return fmt.Errorf("writing certificate: %s", err)
}
cmd.Printf("You can now connect to a node using 'ssh -F %s/ssh_config -i <your private key> <node ip>'.\nYou can obtain the private node IP via the web UI of your CSP.\n", constants.TerraformWorkingDir)
cmd.Printf("You can now connect to a node using 'ssh -F %s/ssh_config -i <your private key> <node ip>' in your constellation workspace.\nYou can obtain the private node IP via the web UI of your CSP.\n", constants.TerraformWorkingDir)
return nil
}

View File

@ -307,7 +307,7 @@ Host ${azurerm_public_ip.loadbalancer_ip[0].fqdn}
Host *
PreferredAuthentications publickey
CertificateFile=ca_cert.pub
CertificateFile=constellation-terraform/ca_cert.pub
User root
ProxyJump ${azurerm_public_ip.loadbalancer_ip[0].fqdn}
EOF