用户注册 登录
珍珠湾全球网 返回首页

岳东晓 -- 珍珠湾全球网 ... http://ydx.zzwave.com [收藏] [复制] [分享] [RSS] 岳东晓 -- 珍珠湾全球网

日志

OmniNAS KD20 SSH ACCESS using PuTTY

已有 12292 次阅读2015-6-7 14:45 |个人分类:笔记|系统分类:科技| trick

Shuttle OmniNAS KD20 Command Execution


Following the trick at this page, I wrote a simple script which can be used to upload files and execute commands on the KD20 NAS, the download link is: kd20hack.zip . Just unzip the file and open the HTML file with a browser.

The following is how to use the script:

Description: use this tool to upload a file or execute a command on OmniNAS KD20 running Firmware Version : 2.38.20140728 .

Usage:

(1) To upload a file to the "disk" folder, do not enter any commands.
(2) To execute a command, you have to also select a file.


The path to the "disk" share is /share/atonnas/disk/ .


To enable SSH access, following these steps


1) create a RSA private + public key pair using PuTTY Key Generator 

save the private key on PC, upload the public key to the KD20 NAS, say with filename  "pub.key".


2) copy the public key to /root/.ssh/authorized_keys


(sudo mkdir /root/.ssh/; sudo cat //share/atonnas/disk/pub.key >> /root/.ssh/authorized_keys )


Then start sshd on the NAS by executing "sudo /bin/sshd"





路过

鸡蛋

鲜花

支持

雷人

难过

搞笑
 

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 用户注册

Archiver|手机版|珍珠湾全球网

GMT+8, 2024-4-26 22:13 , Processed in 0.019146 second(s), 8 queries , Apc On.

Powered by Discuz! X2.5

回顶部