Skip to content

Instantly share code, notes, and snippets.

@oeo
Created February 5, 2026 22:45
Show Gist options
  • Select an option

  • Save oeo/92b7e966532ac3ff0100eefc7cce6ee6 to your computer and use it in GitHub Desktop.

Select an option

Save oeo/92b7e966532ac3ff0100eefc7cce6ee6 to your computer and use it in GitHub Desktop.
Reset WSL password for taky user
# Reset WSL password for taky user
# Run this in PowerShell (as Administrator)
Write-Host "Resetting password for taky user..." -ForegroundColor Cyan
wsl bash -c @'
echo "taky:oijoij" | sudo chpasswd
if [ $? -eq 0 ]; then
echo "✓ Password for taky set to: oijoij"
else
echo "✗ Failed to set password"
fi
'@
Write-Host ""
Write-Host "Testing SSH connection..." -ForegroundColor Yellow
Write-Host "Password is: oijoij" -ForegroundColor White
Write-Host ""
ssh -p 2222 taky@localhost "echo '✓ SSH login successful!' && whoami"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment