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

[巴法络] [求助] 无法ssh登陆

4784 16
发表于 2012-11-15 00:48:19 | 显示全部楼层 阅读模式

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

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

×
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:F9  Firmware=  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:F9  Firmware=  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:F9  Firmware=  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:F9  Firmware=  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>


评论16

shenpan楼主 发表于 2012-11-22 22:12:32 | 显示全部楼层
为啥不给审核?这么长时间了。
回复 点赞

使用道具 举报

藍色水瓶 发表于 2012-12-20 22:51:05 | 显示全部楼层
唉...我也遇到同樣的問題,找遍了網路上的文章,卻找不到答案,哪位高手幫幫忙吧...
回复 点赞

使用道具 举报

pandjLv.2 发表于 2013-2-17 16:26:16 | 显示全部楼层
帮顶一下,我的也是这样,{:3_60:}
回复 点赞

使用道具 举报

wahhhLv.5 发表于 2013-2-18 15:49:33 | 显示全部楼层
本帖最后由 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
回复 点赞

使用道具 举报

51fishLv.2 发表于 2013-3-30 00:25:44 | 显示全部楼层
我按楼上高手的命令执行后文件不能拷贝,为什么呢:
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) [ACP Send/Receive (Packet:8020 = ACP_Discover)]
回复 点赞

使用道具 举报

pt880Lv.10 发表于 2013-3-30 00:33:01 | 显示全部楼层
51fish 发表于 2013-3-30 00:25
我按楼上高手的命令执行后文件不能拷贝,为什么呢:
ACP_commander out of the nas-central.org (linkstati ...

因为你的电脑的防火墙没有关闭。
回复 点赞

使用道具 举报

51fishLv.2 发表于 2013-3-30 08:21:19 | 显示全部楼层
pt880 发表于 2013-3-30 00:33
因为你的电脑的防火墙没有关闭。

防火墙关着的,试了两台电脑都不行,是否是网络存储的linux有防火墙,不知用什么命令能关闭
回复 点赞

使用道具 举报

pt880Lv.10 发表于 2013-3-30 23:08:27 | 显示全部楼层
51fish 发表于 2013-3-30 08:21
防火墙关着的,试了两台电脑都不行,是否是网络存储的linux有防火墙,不知用什么命令能关闭 ...

请关闭360!
回复 点赞

使用道具 举报

51fishLv.2 发表于 2013-3-30 23:19:47 | 显示全部楼层
谢谢,已成功开始下载pt,就是1.64不能成功nfs,不过无所谓了,能下pt就ok
回复 点赞

使用道具 举报

yh13787021347Lv.2 发表于 2013-5-10 14:17:50 | 显示全部楼层
wahhh 发表于 2013-2-18 15:49
LS-XL需要再修改/etc/init.d/sshd.sh,删掉15到19行(对SFTP的判断),否则sshd服务起不来。具体是这么几句 ...

不行啊,为什么我修改这个sshd文件提示要权限?怎么办啊!!!
回复 点赞

使用道具 举报

yh13787021347Lv.2 发表于 2013-5-10 14:26:34 | 显示全部楼层
谢谢楼主,搞定了,连上了,看来低端货就是要多折腾,高端的教程有些水土不服
我的wvl 1.64官方固件 也是按照流程自己root 但是一直ssh不了 防火墙什么都关了啊 一直没有解决。。。你是怎么解决的呢?  详情 回复
发表于 2013-7-18 21:45
回复 点赞

使用道具 举报

夜雨暗影Lv.5 发表于 2013-5-10 15:35:38 | 显示全部楼层
刷破解版固件吧
回复 点赞

使用道具 举报

鸟语王Lv.2 发表于 2013-7-18 21:45:02 | 显示全部楼层
yh13787021347 发表于 2013-5-10 14:26
谢谢楼主,搞定了,连上了,看来低端货就是要多折腾,高端的教程有些水土不服 ...

我的wvl 1.64官方固件 也是按照流程自己root 但是一直ssh不了 防火墙什么都关了啊 一直没有解决。。。你是怎么解决的呢?
回复 点赞

使用道具 举报

lq2001Lv.3 发表于 2013-11-26 23:02:35 | 显示全部楼层
感谢!!
回复 点赞

使用道具 举报

kevin9611Lv.3 发表于 2013-12-6 10:49:25 | 显示全部楼层
感谢分享。
LS-421DE更新固件到1.3,根据标准流程进行,破解root密码,更改ssh root登陆,重启ssh后使用securecrt无法登陆,用楼主的方法成功!!!!
回复 点赞

使用道具 举报

MR-RUANLv.2 发表于 2013-12-17 17:32:20 | 显示全部楼层
我说怎么样都不行,最后刷到1.57原厂固件就可以了,不知道为毛
回复 点赞

使用道具 举报

回复

懒得打字嘛,点击右侧快捷回复 【本站酷狼4T,750元】
您需要登录后才可以回帖 登录 | 注册

本版积分规则

投诉/建议联系

support@gebi1.cn

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