Remote - SSH


we directly SSH into server & access its directory also we can directly attach debugger to the app.

it will be very useful for debugging app's in production

  1. Install Remote SSH Plugin for VS Code

  2. Add SSH Targets

    https://s3-us-west-2.amazonaws.com/secure.notion-static.com/87dd9654-5d16-4971-a21c-57e82336f561/Untitled.png

  3. Enter full ssh command with key for example

ssh -i "D:\\df-tech\\DemandFarm_Internal_AWS_Key.ppk" [email protected] 

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9e61c08c-2abb-4ff2-b405-26288f1811ad/Untitled.png

SSH key permission issue fix for Windows


icacls .\\private.key /inheritance:r
icacls .\\private.key /grant:r "%username%":"(R)"
#example
#icacls .\\DemandFarm_Internal_AWS_Key.key /Inheritance:r
#Icacls .\\DemandFarm_Internal_AWS_Key.key /Grant:r "SaurabhGangamwar":"(R)"

Windows SSH: Permissions for 'private-key' are too open