Hi
I've recently got a Buffalo Linkstation Live 1TB LS-CHLv2 running buffalo f/w v1.37 and would like to enable ssh access. Looking at the main nas-central website, this method for the XHL *should* work on the CHLv2 (stop me here if I'm going wrong!).
I followed the steps in the original post, including the additional step for v1.37 (which my LS-CHLv2 is running), without errors.
Quote:
First you can test if your nas will accept the following comands, just do a "ls /" and see the result. If you see your "/" folders, its ok:
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "ls /"
change root password:
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "(echo newrootpass;echo newrootpass)|passwd"
allow root to login on ssh - (this is one way to do it, the other way i know is to remove root from /etc/ftpusers)
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"
Only for fw 1.37 - execute this additional command to enable root login on ssh
java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"
restart ssh service
java -jar acp_commander -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "/etc/init.d/sshd.sh restart"
I should state that the "ls /" command works fine and shows me the directories on my NAS, so it must be connecting properly.
Once complete I downloaded PuTTy to ssh into the NAS as I run WinXP, however when I type the NAS ip (192.168.0.10) into the host name box and click open, I get a "Network Error: Connection Refused" error message. Stating the obvious, I'm assuming that my ssh access hasn't worked......?
Can anyone advise on whether the above method should work for the CHLv2, where I'm going wrong, and what I can do to fix this?
I've seen many posts (perhaps not directly related) which use the -o flag with acp_commander. I haven't used this at all - should I have done?
Many thanks in advance
Mark