secara default service ssh pada buffalo linkstation Pro sudah jalan, tetapi root tidak memiliki hak akses ke servis ssh. Berikut trik agar kita dapat melakukan ssh ke linkstation pro.
Enabling ssh login - Tested in FW 1.34 and 1.37
Assuming that your NAS IP is static 192.168.0.10
Using only acp_commander:
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.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "/etc/init.d/sshd.sh restart"
Read more...