We assume you're the root
user.
First, update the system to latests kernel and drivers:
apt update && apt upgrade -y
Install some basic tools:
# 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