Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Jul 28, 2014 9:27 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 72 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: Fri Aug 27, 2010 6:06 am 
Offline
Newbie

Joined: Fri Aug 27, 2010 5:41 am
Posts: 6
Hi all, my first post here, hope it helps.

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"


try root login on ssh :)

Ps: my XHL had ssh service enabled after 1.34 and 1.37 updates, didn't tested before (updated from 1.20 to 1.34 / 1.20 to 1.37)

sorry my bad english


Last edited by tenchinho on Fri Oct 08, 2010 11:50 pm, edited 3 times in total.

Top
 Profile  
 
PostPosted: Wed Sep 08, 2010 3:53 pm 
Offline
Total Newbie

Joined: Wed Sep 08, 2010 3:50 pm
Posts: 1
hi

thanks for this post - just got a ls-xhl 1tb box today and flashed it to the 1.34 firmware

your notes are pretty good - but I think the sed command should be:

java -jar acp_commander -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"

maybe?

I've been battling with different bits all day and this post has helped me a lot :-)

cheers

jamie


Top
 Profile  
 
PostPosted: Fri Sep 10, 2010 2:07 pm 
Offline
Total Newbie

Joined: Fri Sep 10, 2010 6:15 am
Posts: 1
I've done all command above successfull, but when I use Putty to login using SSH by account root with empty password, I still not login to my system, how can I do next, thanks for your help!

Image


Top
 Profile  
 
PostPosted: Mon Sep 13, 2010 3:41 am 
Offline
Newbie

Joined: Fri Aug 27, 2010 5:41 am
Posts: 6
work2fly wrote:
hi

thanks for this post - just got a ls-xhl 1tb box today and flashed it to the 1.34 firmware

your notes are pretty good - but I think the sed command should be:

java -jar acp_commander -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"

maybe?

I've been battling with different bits all day and this post has helped me a lot :-)

cheers

jamie


thx, i corrected the line.


SWA wrote:
I've done all command above successfull, but when I use Putty to login using SSH by account root with empty password, I still not login to my system, how can I do next, thanks for your help!

Image



You set an empty password? Something like "(echo ;echo)|passwd"? Try a non-empty pass, and empty it after first ssh login, if you want.
But i don't know if empty password works in this case.


Top
 Profile  
 
PostPosted: Mon Sep 20, 2010 7:42 am 
Offline
Newbie

Joined: Fri Aug 06, 2010 2:31 pm
Posts: 9
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\hhlv>cd\

C:\>java -jar acp_commander.jar -t 192.168.8.103 -o -addons -ip 192.168.8.103 -p
w password
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!


Using random connID value = A1AB431D3B23
Using target: LS-XHL895/192.168.8.103
Starting authentication procedure...
Sending Discover packet...
Found: LS-XHL895 (/192.168.8.103) LS-XHL(ANKOU) (ID=00017) mac: 00:
24:A5:45:48:95 Firmware= 1.340 Key=264FFE1F
Trying to authenticate EnOneCmd... ACP_STATE_OK
Trying to authenticate with admin password... ACP_STATE_PASSWORD_ERROR
Installing addons.tar ...
creating directory... OK
Found local file <addons.tar>
untaring ...
Untaring complete, you can review the log in
//192.168.8.103/share/acp_commander/untar.log
start telnetd...
Reset root pwd...

You can now telnet to your box as user 'root' providing no / an empty password.
Changeing IP: ACP_STATE_PASSWORD_ERROR

C:\>
my admin webpass is password
pls tell me why it say wrong pass


Top
 Profile  
 
PostPosted: Mon Oct 18, 2010 5:09 pm 
Offline
Total Newbie

Joined: Tue Oct 05, 2010 6:03 pm
Posts: 3
I do have the same problem:

Could it be that the admin and root password are not the same? What should it be by default?


D:\>java -jar acp_commander.jar -t 192.168.100.28 -ip 192.168.100.28 -pw passwor
d -c "ls /"
ACP_commander out of the nas-central.org (linkstationwiki.net) project.
Used to send ACP-commands to Buffalo linkstation(R) LS-PRO.

WARNING: This is experimental software that might brick your linkstation!


Using random connID value = 54681EEF0192
Using target: LS-CHL-V29A9.speedport.ip/192.168.100.28
Starting authentication procedure...
Sending Discover packet...
Found: LS-CHL-V29A9 (/192.168.100.28) LS-CHL-V2(YURYAKU) (ID=00018) mac: 00:
24:A5:A4:49:A9 Firmware= 1.340 Key=43FED0BA
Trying to authenticate EnOneCmd... ACP_STATE_OK
Trying to authenticate with admin password... ACP_STATE_OK
>ls /
bin
boot
dev
etc
home
initrd
lib
mnt
modules
proc
root
sbin
sys
tmp
usr
var
www

Changeing IP: ACP_STATE_PASSWORD_ERROR
Please note, that the current support for the change of the IP is currently very
rudimentary.
The IP has been set to the given, fixed IP, however DNS and gateway have not bee
n set. Use the WebGUI to make appropriate settings.


Top
 Profile  
 
PostPosted: Tue Oct 19, 2010 11:14 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2585
Out of the box, admin and root password will be different.

You got a result for "ls /". So your admin password was "password".
Why do you think you have a problem?

Be aware to not use "-addons" and do not use "-o" as well.
It is not possible to use the addons on XHL because they differ from
former LS versions (different binaries needed). "-o" is not working
anymore due to changes from Buffalo.

Try to follow exactly what was posted by the thread starter.
If you can't access the XHL with ssh then, come back and describe
what you did as precise as possible.

_________________
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
 Profile  
 
PostPosted: Thu Nov 11, 2010 8:52 pm 
Offline
Newbie
User avatar

Joined: Thu Dec 14, 2006 9:24 pm
Posts: 46
Location: United States of America
It worked for me with 1.34! the pasword to use is newrootpass
tenchinho wrote:
Hi all, my first post here, hope it helps.

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 -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "/etc/init.d/sshd.sh restart"


try root login on ssh :)

Ps: my XHL had ssh service enabled after 1.34 and 1.37 updates, didn't tested before (updated from 1.20 to 1.34 / 1.20 to 1.37)

sorry my bad english


Top
 Profile  
 
PostPosted: Tue Nov 30, 2010 10:49 pm 
Offline
Newbie

Joined: Sat Nov 27, 2010 1:11 pm
Posts: 49
tenchinho wrote:
...restart ssh service
java -jar acp_commander -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "/etc/init.d/sshd.sh restart"...

shouldn't it be:

java -jar acp_commander.jar -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "/etc/init.d/sshd.sh restart"

i mean with the ".jar"

It worked wonderful with my LS-WXL504.

THANKYOU MUCH!

And your english is perfect :)


Top
 Profile  
 
PostPosted: Sun Dec 12, 2010 12:54 pm 
Offline
Total Newbie

Joined: Sun Dec 12, 2010 12:47 pm
Posts: 1
I have 2TB Linkstation Live flashed with 1.34 open firmware. However I still cannot get SSH login to work.

I've followed all the instructions on this thread but it isn't obvious whether the responses to the different acpcommander instructions are having the desired effect. I can successfullly use "ls /" so I know I'm communicating with the box.

Is there any reason why the 2TB version of the Linkstation shouldn't work?

I previously had a 1TB box (LS v2) which I had configured to use Twonky Media server. I'm trying to do the same here but can't get very far.

Any tips?

Thanks.


Top
 Profile  
 
PostPosted: Tue Dec 14, 2010 3:31 am 
Offline
Regular Member

Joined: Sat Nov 11, 2006 10:56 am
Posts: 702
Use my 1.37 it works

kev68 wrote:
I have 2TB Linkstation Live flashed with 1.34 open firmware. However I still cannot get SSH login to work.

I've followed all the instructions on this thread but it isn't obvious whether the responses to the different acpcommander instructions are having the desired effect. I can successfullly use "ls /" so I know I'm communicating with the box.

Is there any reason why the 2TB version of the Linkstation shouldn't work?

I previously had a 1TB box (LS v2) which I had configured to use Twonky Media server. I'm trying to do the same here but can't get very far.

Any tips?

Thanks.


Top
 Profile  
 
PostPosted: Sun Dec 19, 2010 5:10 pm 
Offline
Newbie

Joined: Sat Dec 18, 2010 11:40 am
Posts: 22
Thanks for this - very straightforward and useful post


Top
 Profile  
 
PostPosted: Sat Jan 08, 2011 7:02 pm 
Offline
Newbie

Joined: Sat Jan 08, 2011 6:44 pm
Posts: 19
Hi

I've recently got a Buffalo Linkstation Live 1TB LS-CHLv2 running buffalo f/w v1.37 and would like to enable ssh access. Looking at the main nas-central website, this method for the XHL *should* work on the CHLv2 (stop me here if I'm going wrong!).

I followed the steps in the original post, including the additional step for v1.37 (which my LS-CHLv2 is running), without errors.

Quote:
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 -t 192.168.0.10 -ip 192.168.0.10 -pw adminpasswordhere -c "/etc/init.d/sshd.sh restart"


I should state that the "ls /" command works fine and shows me the directories on my NAS, so it must be connecting properly.

Once complete I downloaded PuTTy to ssh into the NAS as I run WinXP, however when I type the NAS ip (192.168.0.10) into the host name box and click open, I get a "Network Error: Connection Refused" error message. Stating the obvious, I'm assuming that my ssh access hasn't worked......?

Can anyone advise on whether the above method should work for the CHLv2, where I'm going wrong, and what I can do to fix this?

I've seen many posts (perhaps not directly related) which use the -o flag with acp_commander. I haven't used this at all - should I have done?

Many thanks in advance

Mark


Top
 Profile  
 
PostPosted: Tue Jan 11, 2011 9:40 pm 
Online
Regular Member

Joined: Mon Apr 26, 2010 10:24 am
Posts: 1836
Have you enabled Protocol ssh?
Image


Top
 Profile  
 
PostPosted: Thu Jan 13, 2011 8:33 pm 
Offline
Newbie

Joined: Sat Jan 08, 2011 6:44 pm
Posts: 19
In PuTTY? Yeah I'd tried SSH also tried telnet too but neither seemed to work.

In the end I used Shonks FW 1.37Mod1 - worked a treat and I've now got SSH and telnet access.

Thanks for your help


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 72 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Jacom7000 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:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group