文刀 发表于 2013-3-3 22:40:40

ls-wvl官方1.64 开启ssh 遇到问题!求帮助啊!

我是按照 这个教程搞的
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

密码没有错啊!

文刀 发表于 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= not found in /etc/melco/info.
LoadConfFileOnOffEx:key= not found in /etc/melco/info.
LoadConfFileStringEx:key= not found in /etc/melco/diskinfo.
LoadConfFileStringEx:key= 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.org/viewtopic.php?f=75&t=26689 ,里面的解决方法是用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

谢谢分享……
页: [1]
查看完整版本: ls-wvl官方1.64 开启ssh 遇到问题!求帮助啊!