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 密码没有错啊! |
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> |
java -jar acp_commander.jar -t nasip -ip nasip -pw password -c "(echo newrootpass;echo newrootpass)|password"
红色的password是指系统初始密码,蓝色里的newrootpass是指你自己设置的密码,当你操作完成后,你登录时应该用的是newrootpass这里,你自己设置的密码 |
本帖最后由 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起不来。) |
我的1.64固件QVL也卡在了这里,goo到这篇文章:http://forum.buffalo.nas-central ... hp?f=75&t=26689 ,里面的解决方法是用
实测有效 :) |