赞
踩
$ git clone https://github.com/openwrt/openwrt.git
$ cd openwrt
$ git checkout -b openwrt-18.06 origin/openwrt-18.06
$ ./script/feeds update -a
$ ./script/feeds install -a
Target System ---> x86
Base system ---> libstdcpp
Development ---> gdb & gdbserver
LuCI ---> Collections ---> luci
Target Images ---> Build VMware image files(VMDK)
Network ---> SSH ---> openssh-sftp-server & openssh-server & openssh-keygen
# uci set network.lan.proto=dhcp
# uci commit network
# /etc/init.d/network restart
查看虚拟机IP为:10.0.2.15
只需要再增加Port forwarding的规则
建议是使用MobaXterm, 它具备SFTP的功能, 可以方便的上传主机的文件到OpenWRT目标机
{
"name": "OpenWRT",
"host": "localhost",
"protocol": "sftp",
"port": 2222,
"username": "root",
"password": "123456",
"remotePath": "/root",
"uploadOnSave": true
}
注意: 本地需要一个文件夹来与目标机同步
具体的可以参考另外一篇文章: vscode服务器同步----sftp插件
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。