欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

vs code sftp配置

程序员文章站 2022-06-01 10:30:56
...

vs code (Visual Studio Code) SFTP keyboard interactive authentication method配置方法

总是报错:All configured authentication methods failed

正确的配置是不要password.
我的配置是:

{
  "host": "xxx",
  "port": 22,
  "username": "xxx",
  "protocol": "sftp",
  "agent": null,
  "privateKeyPath": null,
  "passphrase": null,
  "passive": true,
  "interactiveAuth": true,
  "remotePath": "xxx",
  "uploadOnSave": true,
  "syncMode": "update",
  "ignore": [
    "**/.vscode/**",
    "**/.git/**"
  ],
  "watcher": {
    "files": "glob",
    "autoUpload": true,
    "autoDelete": true
  }
}