- 其他默认情况会自动同步
典型配置:
{
"name": "this project",
"host": "1.1.1.1",
"protocol": "sftp",
"port": 22,
"username": "[name]",
"password": "[passwd]",
"remotePath": "/home/xxx/workspace/testpoj",
"uploadOnSave": true,
"ignore": [
".\*",
"\*.o",
"\*.core",
"\*.vgcore"
]
}
host:服务端的地址
username、passwd:登录host的用户名和密码
protocol、port:sftp用22,ftp用21
remotePath: 配置远端
其他:
指定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://code.visualstudio.com/docs/remote/ssh
插件
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数Linux运维工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Linux运维全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Linux运维知识点,真正体系化!
由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新
如果你觉得这些内容对你有帮助,可以添加VX:vip1024b (备注Linux运维获取)
新**
如果你觉得这些内容对你有帮助,可以添加VX:vip1024b (备注Linux运维获取)
[外链图片转存中…(img-F2TG50d2-1713027442351)]