Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Nov 18, 2017 10:29 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Oct 29, 2013 11:25 am 
Offline
Total Newbie

Joined: Tue Oct 29, 2013 11:07 am
Posts: 2
I am trying to open my LinkStation™ Pro Duo LS-WVL, LS-WVL015 to install a headless backup service (Crashplan) but am stuck.

My config:
* LinkStation™ Pro Duo LS-WVL, LS-WVL015 (KOUGYOKU), Kirkwood
* IP address: 192.168.1.6
* firmware version: 1.62
* configured as RAID1

Here's what I've done so far:

1) Opened the Linkstation & reset password (Following this guide: http://buffalo.nas-central.org/index.ph ... k_Firmware)

2) Installed addons (downloaded from http://downloads.buffalo.nas-central.or ... addons.tar, then executed
Code:
java -jar acp_commander.jar -t <IP ADDRESS> -addons

3) Now I can connect with
Code:
java -jar acp_commander.jar -t 192.168.1.6 -ip 192.168.1.6 -pw password -s

but not with
Code:
telnet 192.168.1.6

4) Following this guide: http://buffalo.nas-central.org/wiki/Ope ... ware_LS-VL I did this:
* created public/private SSH key pair using PuttyGen.exe
* created a copy of the public key and rename it to authorized_keys (no extension)
* Put authorized_keys into the share "share"
* created a new file called open-ls.txt in the share "share"
* pasted the following lines into it:

Code:
#!/bin/bash
# open-ls.txt -- This script will be executed on the LS

# DIR is where we are
DIR=$( cd $(dirname $0) ; pwd)

# Create the directory for the ssh keys and copy the pubkey there
mkdir /root/.ssh
chmod 700 /root/.ssh
cp $DIR/authorized_keys /root/.ssh/
chmod 600 /root/.ssh/authorized_keys
# Required if 'authorized_keys' have een written on a Windows PC
dos2unix /root/.ssh/authorized_keys

### Enable root login for SSH
# Backup sshd_config
cp -p /etc/sshd_config /etc/sshd_config.orig
# Replace all "PermitRootLogin no" by "PermitRootLogin yes"
sed -i '/PermitRootLogin/s/no/yes/' /etc/sshd_config
chmod 600 /etc/sshd_config
# Verify
grep PermitRootLogin /etc/sshd_config

# Last we restart the sshd.
/etc/init.d/sshd.sh restart

The result is that I do have a file .ssh in folder root, but something's wrong with the permissions and it doesn't execute.

The entry is as follows:

Code:
/rwx------ 2 root root 4096 Oct 25 2013 .ssh

Note the slash at the beginning. I am unable to delete that file and try again.
Doing a "rm root/.ssh" is acknowledged with "OK (ACP_STATE_OK)", but when I list the directory again the file is still there.

Also, I can only do one command after logging in (item 3 above). After that the prompt changes from "/root>" to just ">".

Are you able to help me with either of these problems? Thank you!


Top
   
PostPosted: Wed Oct 30, 2013 9:04 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
With 1) to 3) you did everything wrong, what one can do wrong.
4) was the right way to go.
".ssh" is not a file but a directory. So "rm -rf /root/.ssh" would
be the command to delete this.
But before deleting stuff, you should examine the content of the
directory ".ssh" and the content of the files in this directory.
Double check, if you did everything right by looking at the
result of your file operations (read: the patching of the files).
You can also look into the log file of sshd to see what went wrong.
Use "-c <command>" to examine the content.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
   
PostPosted: Thu Oct 31, 2013 1:27 pm 
Offline
Total Newbie

Joined: Tue Oct 29, 2013 11:07 am
Posts: 2
Quote:
With 1) to 3) you did everything wrong, what one can do wrong.

Oh dear! I hope I didn't break anything.

.ssh seems to be a file since I don't see a trailing slash (ie. it's ".ssh" not ".ssh/").
On the same level there is
.bash_profile
.bashrc
.files/

I tried "rm -rf /root/.ssh" which it acknowledged with OK (ACP_STATE_OK), but the ominous file remains.

Are you able to tell me why I can only enter one command at a time? That is really limiting.
After it authenticated it tells me that I can "Enter telnet commands to LS,..."

Thank you for your help!


Top
   
PostPosted: Thu Oct 31, 2013 10:39 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
Look into the "messages" file. Should be somewhere in /var.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


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:
Powered by phpBB® Forum Software © phpBB Limited