[求助] 无法ssh登陆
ls-xl,配的希捷2t的硬盘,全新插入未手工设置。升级官方1.63。
完全根据标准流程进行,破解root密码,更改ssh root登陆,重启ssh后使用securecrt或putty无法登陆:
The remote system refused the connection.
请高人不吝赐教,谢谢!
以下是命令行的内容:
C:\Users\admin\Downloads>
C:\Users\admin\Downloads>java -jar acp_commander.jar -t 192.168.0.198 -ip 192.
168.0.198 -pw password -c "(echo toor;echo toor)|passwd"
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 = 7B30B8719216
Using target: 192.168.0.198/192.168.0.198
Starting authentication procedure...
Sending Discover packet...
Found:LS-XL9F9 (/192.168.0.198) LS-XL(SHOUTOKU) (ID=00025) mac: 4C:
E6:76:C5:89:F9Firmware=1.630 Key=2592E500
Trying to authenticate EnOneCmd... ACP_STATE_OK
Trying to authenticate with admin password... ACP_STATE_OK
>(echo toor;echo toor)|passwd
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.
C:\Users\admin\Downloads>java -jar acp_commander.jar -t 192.168.0.198 -ip 192.
168.0.198 -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 = 262F1FCA71F3
Using target: 192.168.0.198/192.168.0.198
Starting authentication procedure...
Sending Discover packet...
Found:LS-XL9F9 (/192.168.0.198) LS-XL(SHOUTOKU) (ID=00025) mac: 4C:
E6:76:C5:89:F9Firmware=1.630 Key=717C3846
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.
C:\Users\admin\Downloads>java -jar acp_commander.jar -t 192.168.0.198 -ip 192.
168.0.198 -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 = 4A647EFFA996
Using target: 192.168.0.198/192.168.0.198
Starting authentication procedure...
Sending Discover packet...
Found:LS-XL9F9 (/192.168.0.198) LS-XL(SHOUTOKU) (ID=00025) mac: 4C:
E6:76:C5:89:F9Firmware=1.630 Key=349713D4
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.
C:\Users\admin\Downloads>java -jar acp_commander.jar -t 192.168.0.198 -ip 192.
168.0.198 -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 = 4B9E0E730008
Using target: 192.168.0.198/192.168.0.198
Starting authentication procedure...
Sending Discover packet...
Found:LS-XL9F9 (/192.168.0.198) LS-XL(SHOUTOKU) (ID=00025) mac: 4C:
E6:76:C5:89:F9Firmware=1.630 Key=76000812
Trying to authenticate EnOneCmd... ACP_STATE_OK
Trying to authenticate with admin password... ACP_STATE_OK
>/etc/init.d/sshd.sh restart
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.
C:\Users\admin\Downloads>
为啥不给审核?这么长时间了。 唉...我也遇到同樣的問題,找遍了網路上的文章,卻找不到答案,哪位高手幫幫忙吧... 帮顶一下,我的也是这样,{:3_60:} 本帖最后由 wahhh 于 2013-2-18 15:56 编辑
LS-XL需要再修改/etc/init.d/sshd.sh,删掉15到19行(对SFTP的判断),否则sshd服务起不来。具体是这么几句:
if [ "${SUPPORT_SFTP}" = "0" ] ; then
echo "Not support sftp on this model." > /dev/console
exit 0
fi
稳妥的步骤是:
1. 先把文件拷到samba共享目录(IP根据实际修改):
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "cp /etc/init.d/sshd.sh /mnt/disk1/share/"
2. WINDOWS中打开NAS的共享目录,用ultraedit打开sshd.sh文件,看看15到19行是不是检查是否支持SFTP的语句,是的话删除,然后按unix格式保存。为防止出错,还可以把原文件备份一下。
3. 把修改后的文件拷回去:
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "cp /mnt/disk1/share/sshd.sh /etc/init.d/"
4. 在web界面重启NAS 我按楼上高手的命令执行后文件不能拷贝,为什么呢:
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 = C8331ABE179E
Using target: 192.168.0.15/192.168.0.15
Starting authentication procedure...
Sending Discover packet...
A SocketTimeoutException usually indicates bad firewall settings.
Check especially for *UDP* port 22936 and make sure that the connection to your LS is working.
ERROR: Exception: SocketTimeoutException (Receive timed out) 51fish 发表于 2013-3-30 00:25 static/image/common/back.gif
我按楼上高手的命令执行后文件不能拷贝,为什么呢:
ACP_commander out of the nas-central.org (linkstati ...
因为你的电脑的防火墙没有关闭。 pt880 发表于 2013-3-30 00:33 static/image/common/back.gif
因为你的电脑的防火墙没有关闭。
防火墙关着的,试了两台电脑都不行,是否是网络存储的linux有防火墙,不知用什么命令能关闭 51fish 发表于 2013-3-30 08:21 static/image/common/back.gif
防火墙关着的,试了两台电脑都不行,是否是网络存储的linux有防火墙,不知用什么命令能关闭 ...
请关闭360! 谢谢,已成功开始下载pt,就是1.64不能成功nfs,不过无所谓了,能下pt就ok wahhh 发表于 2013-2-18 15:49 static/image/common/back.gif
LS-XL需要再修改/etc/init.d/sshd.sh,删掉15到19行(对SFTP的判断),否则sshd服务起不来。具体是这么几句 ...
不行啊,为什么我修改这个sshd文件提示要权限?怎么办啊!!! 谢谢楼主,搞定了,连上了,看来低端货就是要多折腾,高端的教程有些水土不服 刷破解版固件吧 yh13787021347 发表于 2013-5-10 14:26
谢谢楼主,搞定了,连上了,看来低端货就是要多折腾,高端的教程有些水土不服 ...
我的wvl 1.64官方固件 也是按照流程自己root 但是一直ssh不了 防火墙什么都关了啊 一直没有解决。。。你是怎么解决的呢? 感谢!! 感谢分享。
LS-421DE更新固件到1.3,根据标准流程进行,破解root密码,更改ssh root登陆,重启ssh后使用securecrt无法登陆,用楼主的方法成功!!!!{:7_196:} 我说怎么样都不行,最后刷到1.57原厂固件就可以了,不知道为毛
页:
[1]