Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Powershell, Execute file

views
     
Xploit Machine
post Sep 25 2025, 10:58 AM

❤️ 孤独な旅行者 ❤️​
*******
Senior Member
7,258 posts

Joined: Nov 2008
From: SINGAPORE💃

Windows has a security system that separates standard user actions from administrative actions. Modifying or starting system services (like ssh-agent) is considered a privileged operation that could affect the entire system .. "Run as administrator" option is how you temporarily "elevate" your privileges for a specific task, and the UAC prompt is the security gateway that ensures you have the authority to do so ..

try save this file as .PS1 and run using PowerShell

CODE
# setup-ssh-agent.ps1

Write-Host "Configuring the SSH Agent service..."
Get-Service ssh-agent | Set-Service -StartupType Manual

Write-Host "Starting the SSH Agent service..."
Start-Service ssh-agent

Write-Host "Current service status:"
Get-Service ssh-agent

Write-Host "Adding your SSH key to the agent..."
try {
   ssh-add "C:\Users\Tech Support\.ssh\id_rsa2"
   Write-Host "SSH key added successfully!" -ForegroundColor Green
}
catch {
   Write-Host "Error adding SSH key. Is the path correct and is the key passphrase-protected?" -ForegroundColor Red
}

# This keeps the window open so you can see the output
Read-Host "Press Enter to exit"


 

Change to:
| Lo-Fi Version
0.0122sec    1.65    6 queries    GZIP Disabled
Time is now: 17th December 2025 - 01:46 PM