scp命令上传文件到openwrt服务器 | 您所在的位置:网站首页 › ssh路由器传输文件命令 › scp命令上传文件到openwrt服务器 |
1、指定私钥文件Identity和要上传的文件helloworld_1_i386_pentium4.ipk,上传到192.168.1.188,用户名为root 上传文件:scp -i ./Identity ./helloworld_1_i386_pentium4.ipk [email protected]:/ 上传目录:scp -i ./Identity -r ./package [email protected]:/ 下载文件:scp -i ./Identity [email protected]:/helloworld_1_i386_pentium4.ipk ./ 下载目录:scp -i ./Identity -r [email protected]:/helloworld ./ 2、如果秘钥有修改,出现如下错误,则执行 ssh-keygen -f "/home/yp/.ssh/known_hosts" -R 192.168.1.188 Add correct host key in /home/yp/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /home/yp/.ssh/known_hosts:1 3、安装命令 opkg install helloworld_1_i386_pentium4.ipk 4、卸载命令 opkg remove helloworld |
CopyRight 2018-2019 实验室设备网 版权所有 |