How to enable SSH in Linkstation – LS-X1.0TLJ

1. Download acp_commander.jar ( google around to find the JAR)
2. Assuming the IP on your linkstation is you have to run the following commands
3. _ADMIN_PASSWORD_ is same password that you user on linkstation HTTP/HTTPS URL with admin id.
4. _ROOT_PASSWORD_ provide a new root password

java -jar acp_commander.jar -t -ip -pw _ADMIN_PASSWORD_ -c "ls /"
java -jar acp_commander.jar -t -ip -pw _ADMIN_PASSWORD_ -c "(echo _ROOT_PASSWORD_;echo _ROOT_PASSWORD_)|passwd"
java -jar acp_commander.jar -t -ip -pw _ADMIN_PASSWORD_ -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"
java -jar acp_commander.jar -t -ip -pw _ADMIN_PASSWORD_ -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"
java -jar acp_commander.jar -t -ip -pw _ADMIN_PASSWORD_ -c "/etc/init.d/ restart"

Login to LINUX / Unix box using SSH without password

Here is a mini HOWTO to SSH onto a UNIX Box without typing password.

Server: LINUXSERVER (user –> linuxuser)
Client: iMAC ( user –> demouser)

  • Generate Authentication keys using ssh-keygen on client
$ ssh-keygen -t rsa 
Generating public/private rsa key pair.
Enter file in which to save the key (/home/demouser/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/demouser/.ssh/id_rsa.
Your public key has been saved in /home/demouser/.ssh/
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx demouser@iMAC
The key’s randomart image is:
+–[ RSA 2048]—-+
  • Copy the to server onto $HOME_DIR/.ssh/authorized_keys2
  • Setup a symbolic link to authorized_keys
          ln -s authorized_keys2 authorized_keys
  • chmod 0600 on authorized_keys2 & authorized_keys file
  • From the client try ssh linuxuser@linuxserver, ssh shouldn’t ask for password.