This document assumes the user is knowledgeable about bare installations of virtual private servers on common cloud providers and is looking for quick but comprehensive instructions.
Some trivial commands might be missed or skipped.
This document assumes the user is knowledgeable about bare installations of virtual private servers on common cloud providers and is looking for quick but comprehensive instructions.
Some trivial commands might be missed or skipped.
| # Function to retrieve the product key from the registry | |
| function Get-WindowsKey { | |
| try { | |
| $path = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform' | |
| $key = (Get-ItemProperty -Path $path -Name BackupProductKeyDefault -ErrorAction Stop).BackupProductKeyDefault | |
| return $key | |
| } catch { | |
| return $null | |
| } | |
| } |
The secure and correct way to communicate with non-public services on a virtual server machine is via ssh tunnel
(services like managment console or a database).
To create a simple ssh tunnel from your host machine to the server on the same port number:
ssh -L 9090:localhost:9090 god@kewldomain.com