1、指定私钥文件Identity和要上传的文件helloworld_1_i386_pentium4.ipk,上传到192.168.1.188,用户名为root
上传文件:scp -i ./Identity ./helloworld_1_i386_pentium4.ipk root@192.168.1.188:/
上传目录:scp -i ./Identity -r ./package root@192.168.1.188:/
下载文件:scp -i ./Identity root@192.168.1.188:/helloworld_1_i386_pentium4.ipk ./
下载目录:scp -i ./Identity -r root@192.168.1.188:/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