Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default password #10

Open
hafizj98 opened this issue Oct 23, 2023 · 0 comments
Open

Default password #10

hafizj98 opened this issue Oct 23, 2023 · 0 comments

Comments

@hafizj98
Copy link

hafizj98 commented Oct 23, 2023

Hello, I'm looking for information on the default password for the virtual machine created using the script below. I'm using DHCP, so I don't know the IP address until I log in to the VM.

`

Create a VM with static IP configuration and ssh public key access

$imgFile = .\Get-UbuntuImage.ps1 -Verbose
$vmName = 'TstUbuntu'
$fqdn = 'test.example.com'
$rootPublicKey = Get-Content "$env:USERPROFILE.ssh\id_rsa.pub"

.\New-VMFromUbuntuImage.ps1 -SourcePath $imgFile -VMName $vmName -FQDN $fqdn -RootPublicKey $rootPublicKey -VHDXSizeBytes 60GB -MemoryStartupBytes 2GB -ProcessorCount 2 -IPAddress 10.10.1.196/16 -Gateway 10.10.1.250 -DnsAddresses '8.8.8.8','8.8.4.4' -Verbose

Your public key is installed. This should not ask you for a password.

ssh [email protected]
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant