TS-WXL ssh接続有効化

c:\>java -jar acp_commander.jar -t 192.168.1.3 -ip 192.168.1.3 -pw password -o
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 = 00882C33F5F0
Using target: TS-WXL/192.168.1.3
Starting authentication procedure…
Sending Discover packet…
Found: TS-WXL (/192.168.1.3) TS-WXL(tsukuba) (ID=003212) mac: 00:1D:73:E7:B3:DE Firmware= 1.660 Key=2045F298
Trying to authenticate EnOneCmd… ACP_STATE_OK
Trying to authenticate with admin password… ACP_STATE_OK
start telnetd… OK (ACP_STATE_OK)
Reset root pwd…

You can now telnet to your box as user ‘root’ providing no / an empty password.
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 been set. Use the WebGUI to make appropriate settings.

●/etc/shadowのパーミッション変更
c:\>java -jar acp_commander.jar -t 192.168.1.3 -ip 192.168.1.3 -pw password -s
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 = 2FFF2D3E6F7C
Using target: TS-WXL/192.168.1.3
Starting authentication procedure…
Sending Discover packet…
Found: TS-WXL (/192.168.1.3) TS-WXL(tsukuba) (ID=003212) mac: 00:1D:73:E7:B3:DE Firmware= 1.660 Key=2612B86B
Trying to authenticate EnOneCmd… ACP_STATE_OK
Trying to authenticate with admin password… ACP_STATE_OK
Enter telnet commands to LS, enter ‘exit’ to leave
/root>chmod 666 /etc/shadow

OK (ACP_STATE_OK)

>exit

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 been set. Use the WebGUI to make appropriate settings.

●rootのパスワード削除
-sh-3.2$ ls -l /etc/shadow
-rw-rw-rw- 1 root root 390 Mar 13 22:58 /etc/shadow
-sh-3.2$

-sh-3.2$ vi /etc/shadow
root:$1$$Yab.IC0XLDvJlIi3/A8E40:11009:0:99999:7:::

root::11009:0:99999:7:::

-sh-3.2$ grep root /etc/shadow
root::11009:0:99999:7:::
-sh-3.2$

●rootでtelnet
BUFFALO INC. TeraStation series
TS-WXL login: root
Last login: Fri May 20 02:16:14 JST 2016 on pts/0
root@TS-WXL:~#
root@TS-WXL:~#
root@TS-WXL:~# id
uid=0(root) gid=0(root)
root@TS-WXL:~#

●パーミッション戻し
root@TS-WXL:~# chmod 600 /etc/shadow

●rootパスワード再設定
root@TS-WXL:~# passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@TS-WXL:~#

●sshのコンフィグ編集
root@TS-WXL:~# vi /etc/sshd_config

Port 22 ★ポート番号
Protocol 2 ★SSH2でのみ接続許可
#HostKey /etc/apache/server.key ★鍵はとりあえず使わない
PermitRootLogin yes ★rootログイン許可
PasswordAuthentication yes ★パスワード認証でログイン許可

●sshdデーモン自動起動設定
root@TS-WXL:~# echo “/usr/local/sbin/sshd &” >> /etc/init.d/rcS

●sshd起動
root@TS-WXL:~# /etc/init.d/sshd.sh start

●スペック
root@TS-WXL:/proc# cat cpuinfo
Processor : Feroceon rev 0 (v5l)
BogoMIPS : 799.53
Features : swp half thumb fastmult vfp edsp
CPU implementer : 0x41
CPU architecture: 5TE
CPU variant : 0x1
CPU part : 0x926
CPU revision : 0

Hardware : Feroceon-MV78XX0
Revision : 0000
Serial : 0000000000000000
root@TS-WXL:/proc#

root@TS-WXL:/proc# cat meminfo
MemTotal: 514400 kB
MemFree: 47528 kB
Buffers: 13912 kB
Cached: 380008 kB
SwapCached: 0 kB
Active: 54688 kB
Inactive: 379348 kB
Active(anon): 20032 kB
Inactive(anon): 20288 kB
Active(file): 34656 kB
Inactive(file): 359060 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 999864 kB
SwapFree: 999864 kB
Dirty: 28776 kB
Writeback: 8 kB
AnonPages: 40128 kB
Mapped: 12352 kB
Slab: 27388 kB
SReclaimable: 9772 kB
SUnreclaim: 17616 kB
PageTables: 980 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1257064 kB
Committed_AS: 144928 kB
VmallocTotal: 712704 kB
VmallocUsed: 1632 kB
VmallocChunk: 710220 kB
root@TS-WXL:/proc#

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です