windows vscode remote debugging code

need:

  • vscode + Remote-ssh (vscode widget downloaded)
  • openssh (https://www.mls-software.com/files/setupssh-8.0p1-2.exe)

in win7

  • C: \ Users \ upup.ssh ​​\ config (appear Bad owner or permissions on .ssh / config, win10 solutions can be found to the Internet)
  • C: \ ProgramData \ ssh \ config (you can not solve with this file)

config file

Host 名称
    HostName IP
    User 用户名
    IdentityFile  私钥文件目录

Private key file generation

  • Private keys are generated
//一直回车就好了
ssh-keygen -t rsa

Generates
id_rsa: the generated private key file
id_rsa.pub: generated public key file

  • Free secret sign-in method
scp -p ~/.ssh/id_rsa.pub root@<remote_ip>:/root/.ssh/authorized_keys

Guess you like

Origin www.cnblogs.com/s3320/p/11429615.html