opewrt上传文件

设备上运行的openwrt,当tftp和ftp都无法使用时,可以使用命令scp在两台linux设备上copy文件。

当设备启动起来后,输入命令:

scp hbg@192.168.2.32:/home/hbg/openwrt/A3_307/bin/ar71xx/openwrt-ar71xx-generic-ap143-16M-squashfs-sysupgrade.bin  /tmp/aaa

结果如下:在此过程中需要输入登录使用的密码

root@OpenWrt:/tmp# scp hbg@192.168.2.32:/home/hbg/openwrt/A3_307/bin/ar71xx/open
wrt-ar71xx-generic-ap143-16M-squashfs-sysupgrade.bin  /tmp/aaa
hbg@192.168.2.32's password:
openwrt-ar71xx-generic-ap143-16M-squashfs-sys 100%   15MB   2.2MB/s   00:07

然后升级:

sysupgrade  aaa (其中aaa是openwrt-ar71xx-generic-ap143-16M-squashfs-sysupgrade.bin 文件在设备上的名称)

升级完重启设备就可。

原文地址:https://www.cnblogs.com/rohens-hbg/p/4772368.html