Add example of ssh to remote host

This commit is contained in:
Ben Jackson 2021-03-04 13:28:04 +00:00
commit 82db32780b
2 changed files with 41 additions and 2 deletions

View file

@ -24,6 +24,24 @@
},
"delay": "5000m"
}
},
"python-remote-ssh": {
"variables": {
"port": "8765"
},
"port": "${port}",
"host": "${host}",
"launch": {
"remote": {
"host": "${host}",
"account": "${account}",
"runCommand": [
"python3", "-m", "debugpy", "--listen", "0.0.0.0:${port}",
"--wait-for-client",
"%CMD%"
]
}
}
}
},
"configurations": {
@ -164,6 +182,23 @@
"stopOnEntry": false,
"console": "integratedTerminal"
}
},
"run - remote host": {
"adapter": "python-remote-ssh",
"remote-cmdLine": [
"${remoteRoot}/main.py"
],
"remote-request": "launch",
"configuration": {
"request": "attach",
"redirectOutput": true,
"pathMappings": [
{
"localRoot": "${workspaceRoot}",
"remoteRoot": "${remoteRoot}"
}
]
}
}
}
}