Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Dec 18, 2017 8:09 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Fri Aug 06, 2010 3:26 pm 
Offline
Newbie

Joined: Fri Aug 06, 2010 3:03 pm
Posts: 8
I have TeraStation III and i bought it with 1.20 firmware. It was great, because i can login as root via ssh.
Unfortunately i have update it to 1.32 and i can't login as root.
I can't find the 1.20 firmware in the munufacturers home page.

So I wanted 1.20 firmware. If somebody have or know link to download please share with us.


Top
   
PostPosted: Mon Aug 09, 2010 7:52 am 
Offline
Total Newbie

Joined: Mon Aug 02, 2010 2:33 pm
Posts: 2
Hallo szp,

take a look at this download http://www.buffalo-technology.com/support/getfile/?TS-XL-WXL_v120_2.zip. It's a download for the "TS-RX TeraStation III Rackmount" and not for the "TS-XL TeraStation III". May be it's the right one.
If this is the right firmware please give us a feedback, because carl and i are looking for a telnet/ssh login for the TeraStation III (http://forum.buffalo.nas-central.org/viewtopic.php?f=70&t=21400) with 1.30 and 1.32 firmware.

Eberhard


Top
   
PostPosted: Thu Aug 12, 2010 9:04 am 
Offline
Newbie

Joined: Fri Aug 06, 2010 3:03 pm
Posts: 8
Immidietly after update this firmware i could login as root via ssh. But after that i have rebuild the raid array. And now i cant.

It's not clear for me. I have update the firmware again, but i cant login now as root via ssh.

Maybe we should get earlier firmware version, or already modified by someone, but i can't find anyone


Top
   
PostPosted: Thu Aug 12, 2010 2:45 pm 
Offline
Newbie

Joined: Fri Aug 06, 2010 3:03 pm
Posts: 8
I have modified hddrootfs by this post http://buffalo.nas-central.org/wiki/Ope ... are_LS-WXL
I can see the modification in login screen (so rootfs is modified) but, cant log in as root via ssh.
If you know which files should be modified please tell me. I have modified sshd_config.


Top
   
PostPosted: Thu Aug 12, 2010 2:46 pm 
Offline
Newbie

Joined: Fri Aug 06, 2010 3:03 pm
Posts: 8
I have modified hddrootfs by this post http://buffalo.nas-central.org/wiki/Ope ... are_LS-WXL
I can see the modification in login screen (so rootfs is modified) but, cant log in as root via ssh.
If you know which files should be modified please tell me. I have modified sshd_config.


Top
   
PostPosted: Fri Aug 13, 2010 6:23 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
You could try to use a public key for ssh login.
Add your public key into a file named "authorized_keys"
in directory "ROOTFS/root/.ssh" of your patched firmware
and reapply your firmware. Use your private key to
connect via ssh.
You changed the line "#PermitRootLogin" in ssh_config?

_________________
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: Sun Aug 15, 2010 9:37 am 
Offline
Newbie

Joined: Fri Aug 06, 2010 3:03 pm
Posts: 8
It's not working. I can't login yet.

There's no .ssh folder. After update firmware it's alway generate a new keys. I can join with ssh, but always get 'access denied'.

I think my ssh_config is right. Maybe should be edit some others, but i don't know what.

I can login via telnet as admin, but su - is not permitted. Do you know how to permit it.?

I have waste hours to edit firmware and update it again and again :(


Top
   
PostPosted: Sun Aug 15, 2010 2:25 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
If there is no ".ssh" folder then create one.

_________________
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: Sun Aug 15, 2010 9:48 pm 
Offline
Newbie

Joined: Fri Aug 06, 2010 3:03 pm
Posts: 8
I have tried the followings:

cd /etc/
mkdir ssh
cd ssh
ssh-keygen -f ssh_host_rsa_key -C '' -N '' -t rsa -q
ssh-keygen -f ssh_host_dsa_key -C '' -N '' -t dsa -q

Added /etc/sshd_config
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

copy /etc/ssh/ssh_host_rsa_key to /root/.ssh/
rename to authorized_keys

It doesn't work too. There is any log which describe the problem? I can use telnet as admin


Top
   
PostPosted: Mon Aug 16, 2010 8:11 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
You should have added the public key of your CLIENT into the file
authorized_keys on your SERVER which is running the sshd.
The file has to have the right permissions (read/write for the owner
root only).
This you should have inserted into the patched firmware or done as
user "root".
What you did, was creating a new ssh key for the server and copying
the server key into the file dedicated to the client keys.
That was wrong.
Create the keys on your CLIENT and copy the public key of your CLIENT
into the authorized_keys file on your SERVER (in the home directory
of the user you like to connect as).

_________________
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: Tue Aug 17, 2010 12:43 pm 
Offline
Newbie

Joined: Fri Aug 06, 2010 3:03 pm
Posts: 8
Ok, the authentication keys not so clear for me.
But, I think the keys are right because i'm in ssh login. And now I can login as admin via ssh.
But, I can't login as root, and I can't use su - also.

I think my sshd_config is right

port 22
Protocol 2,1
PermitRootLogin yes
StrictModes yes
PermitEmptyPasswords yes
UsePrivilegeSeparation no
Subsystem sftp /usr/local/libexec/sftp-server

Has somebody an idea to get root access via telnet or ssh? (I can use telnet as admin)


Top
   
PostPosted: Tue Aug 17, 2010 3:06 pm 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2604
There is a difference in connecting with username/password
and key-based authentication in ssh.
If you enter username/password you (usually) do NOT use the
key-based authentication.
With key-based authentication you can connect like this:
Code:
ssh root@192.168.172.1

No need to enter the password (exception would be, if you
used a password protected key, but then your ssh-CLIENT is
asking for the password and NOT the ssh-server).

Your problem with "su" is the missing superuser bit. Unfortunately
you can only set this bit if you are root (superuser).

Maybe you should have a look at the script I wrote for opening
the LS-XHL firmware. You can see there how to solve this problems.
http://buffalo.nas-central.org/wiki/Ope ... are_LS-XHL
Look at the section "How to get telnet working in 1.24 or any other LS-XHL or LS-CHLv2 version".
DO NOT USE the executables.tar.gz referenced there. They are NOT
suitable for your machine!!!

_________________
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: Wed Aug 18, 2010 9:12 am 
Offline
Newbie

Joined: Fri Aug 06, 2010 3:03 pm
Posts: 8
First of all thanks for your help.

Now its working, I can log in as root :biglol:

The main problem was that i can't clear the root password. I have modified the shadow file, clear the root password, but it's not working.
I have created another linux another root hash, and copied it to shadow file, and it's working.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 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