Guide
server
1 | sudo apt-get install openssh-server |
local
- install ssh-client on local machine.
- download
VSCodeUserSetup-x64-1.36.1.exe
from here and install. - start vscode and install
Remote Development
extension. - ctrl+shift+p and enter
remote-ssh
and configure for ssh.
edit ~/.ssh/config
1 | Host node08 |
use
ssh-keygen
instead ofusername and password
copy local~/.ssh/id_rsa.pub
to remote~/.ssh/authorized_keys
1 | ssh-keygen |
OK. Now we can ssh without password like this:
1 | # usage |
debug python with vscode
Ctrl+Shift+P
Python: Select Interpreter
~/anaconda3/envs/torch/bin/python
Debug shortcuts
F11 step in
F10 step over
F5 continue
Reference
History
- 20190729: created.