指定profiles指定多个配置,包括hop
切换配置:Use SFTP: Set Profile to switch profile.
其他
HOP
如果有跳板机才能访问 ssh的服务器,需要在配置中添加 hop 的配置。
{
"name": "target",
"remotePath": "/path/in/target",
// hop
"host": "hopHost",
"username": "hopUsername",
"privateKeyPath": "/Users/localUser/.ssh/id\_rsa", // <-- The key file is assumed on the local.
"hop": {
// target
"host": "targetHost",
"username": "targetUsername",
"privateKeyPath": "/Users/hopUser/.ssh/id\_rsa", // <-- The key file is assumed on the hop.
}
}
多hop详细配置参考:
https://github.com/Natizyskunk/vscode-sftp?tab=readme-ov-file#connection-hopping
VScode remote ssh
remote ssh 是VScode 提供的
https://