Skip to content

Instantly share code, notes, and snippets.

@rajvermacas
Last active August 31, 2025 23:21
Show Gist options
  • Select an option

  • Save rajvermacas/2ff7529ed7bb02cffdba7dc7ebcbbab7 to your computer and use it in GitHub Desktop.

Select an option

Save rajvermacas/2ff7529ed7bb02cffdba7dc7ebcbbab7 to your computer and use it in GitHub Desktop.
troubleshoot
# filepath="C:\Users\<username>\.wslconfig" - remove this line
[wsl2]
memory=16GB

Run below code in powershell

icacls "C:\Users\mrina\.ssh\id_rsa" /inheritance:r
icacls "C:\Users\mrina\.ssh\id_rsa" /grant:r "${env:USERNAME}:(R)"

Also use below config in C:/Users/mrina/.ssh/config

Host myserver
    HostName localhost
    Port 2222
    User root
    IdentityFile C:/Users/mrina/.ssh/id_rsa

Add below config in .vscode/launch.json to run module

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [

    {
        "name": "Python Debugger: FastAPI Server",
        "type": "debugpy",
        "request": "launch",
        "module": "fastapi_server.main",
        "console": "integratedTerminal",
        "cwd": "${workspaceFolder}",
        "env": {
            "PYTHONPATH": "${workspaceFolder}"
        }
    }
]

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment