扫描二维码关注官方公众号
返回列表 发布新帖

[巴法络] ls-wvl官方1.64 开启ssh 遇到问题!求帮助啊!

5464 7
发表于 2013-3-3 22:40:40 | 查看全部 阅读模式

来吧兄弟,一起玩一起讨论!

您需要 登录 才可以下载或查看,没有账号?注册

×
我是按照 这个教程搞的
http://www.gebi1.com/thread-27060-1-1.html
1. 首先升级firmware到最新的官方版本

http://www.buffalo-china.com/drv ... hp?type=1&id=62

如果是mod版,那么久不用找这个网站了;直接从5开始

2. 修改Root账号和启动SSH服务
a. 下载acp_commander.jar       http://downloads.nas-central.org ... R/acp_commander.jar
b. 安装好Java,把jar放到C:\Documents and Settings\Administrator下
c. 在Windows的命令行模式下,按顺序执行如下命令(注意红色的文字部分,ip地址要修改为自己nas的IP,密码部分根据自己的情况修改):
i)     修改 root 密码:
java -jar acp_commander.jar -t nasip -ip nasip -pw password -c "(echo newrootpass;echo newrootpass)|password"
ii)    允许使用ssh进行root用户登录:
java -jar acp_commander.jar -t nasip -ip nasip -pw password -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"
iii)    执行下面这个命令启用ssh登录:
java -jar acp_commander.jar -t nasip -ip nasip -pw password -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"
iv)    重启 ssh 服务:
java -jar acp_commander.jar -t nasip -ip nasip -pw password -c "/etc/init.d/sshd.sh restart"
###########过程中出现提示错误一律忽略################

3. 用Putty.exe 以ssh方式登录NAS

到了这步 出错了!

login as: root
root@192.168.1.100's password:
Access denied

密码没有错啊!

评论7

文刀楼主 发表于 2013-3-3 22:52:30 | 查看全部
D:\Users\Sea\Downloads\LS-WVL>java -jar acp_commander.jar -t 192.168.1.100 -ip 1
92.168.1.100 -pw password -c "(echo 654123;echo 654123)|password"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!


Using random connID value = 55787A214071
Using target:   NAS/192.168.1.100
Starting authentication procedure...
Sending Discover packet...
Found:  Nas (/192.168.1.100)    LS-WVL(KOUGYOKU) (ID=00488)     mac: 隐藏掉
  Firmware=  1.640        Key=482D4DAB
Trying to authenticate EnOneCmd...      ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>(echo 654123;echo 654123)|password
OK (ACP_STATE_OK)
Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.

D:\Users\Sea\Downloads\LS-WVL>java -jar acp_commander.jar -t 192.168.1.100 -ip 1
92.168.1.100 -pw password -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config
"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!


Using random connID value = C8C9C2C2E0E1
Using target:   NAS/192.168.1.100
Starting authentication procedure...
Sending Discover packet...
Found:  Nas (/192.168.1.100)    LS-WVL(KOUGYOKU) (ID=00488)     mac: 隐藏掉
  Firmware=  1.640        Key=075443E5
Trying to authenticate EnOneCmd...      ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config
OK (ACP_STATE_OK)
Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.

D:\Users\Sea\Downloads\LS-WVL>java -jar acp_commander.jar -t 192.168.1.100 -ip 1
92.168.1.100 -pw password -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g
' /etc/sshd_config"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!


Using random connID value = E4330C374E5A
Using target:   NAS/192.168.1.100
Starting authentication procedure...
Sending Discover packet...
Found:  Nas (/192.168.1.100)    LS-WVL(KOUGYOKU) (ID=00488)     mac: 隐藏掉
  Firmware=  1.640        Key=3FCFEAC1
Trying to authenticate EnOneCmd...      ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config
OK (ACP_STATE_OK)
Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.

D:\Users\Sea\Downloads\LS-WVL>java -jar acp_commander.jar -t 192.168.1.100 -ip 1
92.168.1.100 -pw password -c "/etc/init.d/sshd.sh restart"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!


Using random connID value = CF6DD20BFCA6
Using target:   NAS/192.168.1.100
Starting authentication procedure...
Sending Discover packet...
Found:  Nas (/192.168.1.100)    LS-WVL(KOUGYOKU) (ID=00488)     mac: 隐藏掉
  Firmware=  1.640        Key=4F9A0C8E
Trying to authenticate EnOneCmd...      ACP_STATE_OK
Trying to authenticate with admin password...   ACP_STATE_OK
>/etc/init.d/sshd.sh restart
load_info ItemValue = off
LoadConfFileStringEx:key=[ad_dns] not found in /etc/melco/info.
LoadConfFileOnOffEx:key=[info_visible] not found in /etc/melco/info.
LoadConfFileStringEx:key=[array2] not found in /etc/melco/diskinfo.
LoadConfFileStringEx:key=[usb_disk2] not found in /etc/melco/diskinfo.
file:/etc/sftponly_config
userinfo finished
groupname admin
groupname guest
groupname hdusers
file:/etc/pam.d/sshd

Changeing IP:   ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.

D:\Users\Sea\Downloads\LS-WVL>
回复 点赞

使用道具 举报

cswtywh 发表于 2013-3-4 10:00:36 | 查看全部
java -jar acp_commander.jar -t nasip -ip nasip -pw password -c "(echo newrootpass;echo newrootpass)|password"
红色的password是指系统初始密码,蓝色里的newrootpass是指你自己设置的密码,当你操作完成后,你登录时应该用的是newrootpass这里,你自己设置的密码
回复 点赞

使用道具 举报

文刀楼主 发表于 2013-3-4 20:47:11 | 查看全部
这个我明白,我确认 我输入的是  新密码!肯定也没输错,不知道为何连接不成功!

回复 点赞

使用道具 举报

yuansida 发表于 2013-3-4 20:59:30 | 查看全部
重刷1.64官方固件再试试
回复 点赞

使用道具 举报

sess 发表于 2013-3-8 20:20:04 | 查看全部
本帖最后由 sess 于 2013-3-9 17:01 编辑

在c里的最后一步运行前先运行以下命令
java -jar acp_commander.jar -t 192.168.*.** -ip 192.168.*.** -pw adminpasswordhere -c "sed –i '15,19d' /etc/init.d/sshd.sh"

以上命令的目的是:删除/etc/init.d/sshd.sh里面15到19行,对SFTP功能支持的判断。(可能LS-XL不支持SFTP,导致sshd起不来。)
回复 点赞

使用道具 举报

sonnabanana 发表于 2013-8-19 00:09:05 | 查看全部
我的1.64固件QVL也卡在了这里,goo到这篇文章:http://forum.buffalo.nas-central ... hp?f=75&t=26689 ,里面的解决方法是用
  1. java -jar acp_commander.jar -t <NAS ip> -ip <NAS ip> -pw <adminpassword> -c "sed -i 's/root/#root/g' /etc/ftpusers"
复制代码
移除其中的“root”一行。

实测有效 :)
回复 点赞

使用道具 举报

qzgqzgqzg 发表于 2013-11-3 07:42:51 | 查看全部
谢谢分享……
回复 点赞

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

淘宝小店

邀请码

VIP会员

微信客服

公众号

微信群

投诉/建议联系

support@gebi1.cn

未经授权禁止转载,复制和建立镜像,
如有违反,追究法律责任
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2024 隔壁网 版权所有 All Rights Reserved. 粤ICP备14056481号-1
关灯 在本版发帖
扫一扫添加微信客服
返回顶部
快速回复 返回顶部 返回列表