Update scripts to use dynamic username instead of hardcoded alexz
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
- setup-autologin-sshd.ps1: Uses $env:USERNAME, prompts for password - setup-ssh-keys.ps1: Uses $env:USERNAME, prompts for public key - install-nodejs.ps1: Uses $env:USERNAME in instructions - vpn-login.js: Uses process.env.USERPROFILE for paths 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
# Setup OpenSSH Server and Auto-Login for alexz
|
||||
# Setup OpenSSH Server and Auto-Login
|
||||
# Run as Administrator in PowerShell
|
||||
|
||||
$Username = "alexz"
|
||||
$Password = "Az@83278327$$@@"
|
||||
param(
|
||||
[string]$Username = $env:USERNAME,
|
||||
[string]$Password
|
||||
)
|
||||
|
||||
if (-not $Password) {
|
||||
$securePassword = Read-Host "Enter password for $Username" -AsSecureString
|
||||
$Password = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($securePassword))
|
||||
}
|
||||
|
||||
Write-Host "=== Setting up OpenSSH Server ===" -ForegroundColor Cyan
|
||||
|
||||
|
||||
Reference in New Issue
Block a user