scp命令上传文件到openwrt服务器 您所在的位置:网站首页 ssh路由器传输文件命令 scp命令上传文件到openwrt服务器

scp命令上传文件到openwrt服务器

2024-04-04 03:22| 来源: 网络整理| 查看: 265

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 实验室设备网 版权所有