GitHub is a platform for hosting and collaborating on software projects. It is not related to Remote Desktop Protocol (RDP), which is a protocol for remotely accessing and controlling a computer.
To create a free GitHub account, you can follow these steps:
- Go to the GitHub website (https://github.com/).
- Click on the "Sign up for GitHub" button.
- Fill out the form with your name, email address, username, and password for your account.
- Click on the "Create an account" button.
Once you have created an account, you will be able to access GitHub's features for collaborating on and hosting software projects, including version control, bug tracking, and project management tools.
First, go to Github Link:
And create an account ๐ฅด
Secret Name: NGROK_AUTH_TOKEN
Ngrok Link:
RDP workflow script for windows 10:
name: CI on: [push, workflow_dispatch] jobs: build: runs-on: windows-latest steps: - name: Download run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip - name: Extract run: Expand-Archive ngrok.zip - name: Auth run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN env: NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }} - name: Enable TS run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0 - run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop" - run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1 - run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force) - name: Create Tunnel run: .\ngrok\ngrok.exe tcp
√ Username: runneradmin
√ Password: P@ssw0rd!
App (RD Client) Link:
This is a GitHub Actions workflow file written in YAML. It defines a workflow with a single job called "build", which runs on a Windows machine. The job consists of several steps, which are executed in order:
The "Download" step uses the Invoke-WebRequest cmdlet to download the ngrok zip file from the specified URL and save it as "ngrok.zip".
The "Extract" step uses the Expand-Archive cmdlet to unpack the ngrok zip file.
The "Auth" step runs the ngrok executable with the "auth token" command and the value of the NGROK_AUTH_TOKEN environment variable. This authenticates the ngrok client with your ngrok account.
The "Enable TS" step uses the Set-ItemProperty cmdlet to modify the registry key at "HKLM:\System\CurrentControlSet\Control\Terminal Server" and set the "fDenyTSConnections" property to 0. This enables Terminal Services (TS), which allows multiple users to connect to the machine remotely.
The next step uses the Enable-NetFirewallRule cmdlet to enable the "Remote Desktop" firewall rule. This allows incoming Remote Desktop connections.
The next step uses the Set-ItemProperty cmdlet to modify the registry key at "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" and set the "UserAuthentication" property to 1. This enables user authentication for Remote Desktop connections.
The next step uses the Set-LocalUser cmdlet to create a new local user called "runner admin" with the specified password.
The "Create Tunnel" step runs the ngrok executable with the "TCP" command and port number 3389. This creates a TCP tunnel through ngrok that exposes port 3389 on the machine, which is the default port for Remote Desktop connections.
This workflow can be triggered by either a push event to the repository or by manually dispatching the workflow using the GitHub Actions API. When triggered, the workflow will execute the steps defined in the "build" job, creating a tunnel through ngrok that allows Remote Desktop connections to the Windows machine.