if [ "${SUPPORT_SFTP}" = "0" ] ; then这个命令执行不了啊
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Windows\system32>d:
'd:' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
C:\Windows\system32>d:
D:\>java -jar acp_commander.jar -t 192.168.1.130 -ip 192.168.1.130 -pw 132112217
66 -c "(echo 13211221766;echo 13211221766)|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 = E825C2603EC6
Using target: LS421DE3E5/192.168.1.130
Starting authentication procedure...
Sending Discover packet...
Found: LS421DE3E5 (/192.168.1.130) LS421DE(LS-WM) (ID=004812) mac: 10:
6F:3F:CD:33:E5 Firmware= 1.300 Key=4E93ECE9
Trying to authenticate EnOneCmd... ACP_STATE_OK
Trying to authenticate with admin password... ACP_STATE_OK
>(echo 13211221766;echo 13211221766)|password
OK (ACP_STATE_OK)
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.
D:\>java -jar acp_commander.jar -t 192.168.1.130 -ip 192.168.1.130 -pw 132112217
66 -c "sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config"
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 = B65D2505030B
Using target: LS421DE3E5/192.168.1.130
Starting authentication procedure...
Sending Discover packet...
Found: LS421DE3E5 (/192.168.1.130) LS421DE(LS-WM) (ID=004812) mac: 10:
6F:3F:CD:33:E5 Firmware= 1.300 Key=3BEF1276
Trying to authenticate EnOneCmd... ACP_STATE_OK
Trying to authenticate with admin password... ACP_STATE_OK
>sed -i 's/UsePAM yes/UsePAM no/g' /etc/sshd_config
OK (ACP_STATE_OK)
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.
D:\>java -jar acp_commander.jar -t 192.168.1.130 -ip 192.168.1.130 -pw 132112217
66 -c "sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config"
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 = A0C613752F40
Using target: LS421DE3E5/192.168.1.130
Starting authentication procedure...
Sending Discover packet...
Found: LS421DE3E5 (/192.168.1.130) LS421DE(LS-WM) (ID=004812) mac: 10:
6F:3F:CD:33:E5 Firmware= 1.300 Key=3BEF1276
Trying to authenticate EnOneCmd... ACP_STATE_OK
Trying to authenticate with admin password... ACP_STATE_OK
>sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/sshd_config
OK (ACP_STATE_OK)
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.
D:\>java -jar acp_commander.jar -t 192.168.1.130 -ip 192.168.1.130 -pw 132112217
66 -c "/etc/init.d/sshd.sh restart"
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 = 94BAD8B551B3
Using target: LS421DE3E5/192.168.1.130
Starting authentication procedure...
Sending Discover packet...
Found: LS421DE3E5 (/192.168.1.130) LS421DE(LS-WM) (ID=004812) mac: 10:
6F:3F:CD:33:E5 Firmware= 1.300 Key=0665F840
Trying to authenticate EnOneCmd... ACP_STATE_OK
Trying to authenticate with admin password... ACP_STATE_OK
>/etc/init.d/sshd.sh restart
OK (ACP_STATE_OK)
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.
D:\>if [ "${SUPPORT_SFTP}" = "0" ] ; then
此时不应有 "${SUPPORT_SFTP}"。
D:\>