First of all you need a tool called “acp_commander”. It’s a small java commandline script. So you’re going to need java installed. You could simply check if you have it installed by entering “java” in your cmd.exe.
The following commands worked well with Buffalo Linkstation Pro (firmware 1.64) installed:
Execute them at your own risk!
exchange 192.168.0.104 into the ip of your linkstation,
exchange “password” into the password that you use for the web interface
exchange “newpasswd” into the password that you like to use
java -jar acp_commander.jar -t 192.168.0.104 -ip 192.168.0.104 -pw password -c “(echo newpasswd;echo newpasswd)|passwd”
java -jar acp_commander.jar -t 192.168.0.104 -ip 192.168.0.104 -pw password -c “sed -i ‘s/UsePAM yes/UsePAM no/g’ /etc/sshd_config”
java -jar acp_commander.jar -t 192.168.0.104 -ip 192.168.0.104 -pw password -c “sed -i ‘s/PermitRootLogin no/PermitRootLogin yes/g’ /etc/sshd_config”
java -jar acp_commander.jar -t 192.168.0.104 -ip 192.168.0.104 -pw password -c “/etc/init.d/sshd.sh restart”
After that the Linkstation was able to be accessed by putty (root:newpasswd).