博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ssh连接openwrt_如何将SSH无密码连接到OpenWrt路由器?
阅读量:2518 次
发布时间:2019-05-11

本文共 984 字,大约阅读时间需要 3 分钟。

ssh连接openwrt

The good -copy-id method which works well seems not working for OpenWrt .

良好的 -copy-id方法运行良好似乎不适用于OpenWrt 。

How to Passwordless SSH to an OpenWrt Router?

如何将SSH无密码连接到OpenWrt路由器?

OpenWrt’s SSH is Dropbear. It can accept normal RSA keys. But the authorized_keys location is not the same as the openssh “~/.ssh/authorized_keys”.

OpenWrt的SSH 是Dropbear。 它可以接受普通的RSA密钥。 但是,authorized_keys的位置与openssh“〜/ .ssh / authorized_keys”的位置不同。

The location for the authorized_keys is

authorized_keys的位置是

/etc/dropbear/authorized_keys

What you need to do is to put your public key to that file. If you use the default key location ~/.ssh/id_ras.pub, you can do it by this command:

您需要做的是将公共密钥放入该文件。 如果使用默认键位置~/.ssh/id_ras.pub ,则可以通过以下命令进行操作:

ssh root@YOUR_OPENWRT_ROUTER cp /etc/dropbear/authorized_keys /etc/dropbear/authorized_keys.bakcat ~/.ssh/id_rsa.pub | ssh root@YOUR_OPENWRT_ROUTER "cat >> /etc/dropbear/authorized_keys"
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自:

ssh连接openwrt

转载地址:http://szlwd.baihongyu.com/

你可能感兴趣的文章
Array.of使用实例
查看>>
【Luogu】P2498拯救小云公主(spfa)
查看>>
如何获取网站icon
查看>>
几种排序写法
查看>>
java 多线程的应用场景
查看>>
dell support
查看>>
转:Maven项目编译后classes文件中没有dao的xml文件以及没有resources中的配置文件的问题解决...
查看>>
MTK android 设置里 "关于手机" 信息参数修改
查看>>
单变量微积分笔记6——线性近似和二阶近似
查看>>
补几天前的读书笔记
查看>>
HDU 1829/POJ 2492 A Bug's Life
查看>>
CKplayer:视频推荐和分享插件设置
查看>>
CentOS系统将UTC时间修改为CST时间
查看>>
redis常见面试题
查看>>
导航控制器的出栈
查看>>
玩转CSS3,嗨翻WEB前端,CSS3伪类元素详解/深入浅出[原创][5+3时代]
查看>>
iOS 9音频应用播放音频之播放控制暂停停止前进后退的设置
查看>>
Delphi消息小记
查看>>
HNOI2016
查看>>
JVM介绍
查看>>