How can I upload files to dd-wrt router?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
sarpkaya92
DD-WRT User


Joined: 03 Aug 2007
Posts: 79

PostPosted: Fri Jan 30, 2009 1:12    Post subject: How can I upload files to dd-wrt router? Reply with quote
Hello, I want to upload a html file to my router to host it. But It doesn't connect with SSH secure file transfer mode.
Sponsor
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Fri Jan 30, 2009 1:23    Post subject: Reply with quote
did you enable SSH ??

http://www.dd-wrt.com/wiki/index.php/WinSCP
sarpkaya92
DD-WRT User


Joined: 03 Aug 2007
Posts: 79

PostPosted: Fri Jan 30, 2009 1:24    Post subject: Reply with quote
no it is not available to enable.(Enable gap is unclickable)
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Fri Jan 30, 2009 1:29    Post subject: Reply with quote
enable the SSH service
sarpkaya92
DD-WRT User


Joined: 03 Aug 2007
Posts: 79

PostPosted: Fri Jan 30, 2009 1:56    Post subject: Reply with quote
Ok I can enter SSH command part but when I connect to my router via WinSCP it gives error like:
Command 'groups'
failed with return code 127 and error message
.

and

Command 'pwd'
failed with return code 0 and error message
-sh: groups: not found.


But it is opened. I can se jffs folder but I cannot paste anything it is only read only it says.
I can write to tmp folder.
mazilo
DD-WRT User


Joined: 10 Jun 2006
Posts: 385

PostPosted: Fri Jan 30, 2009 2:14    Post subject: Reply with quote
I use scp filename root@<IP Address of DD-WRT router>:/<destination directory> to upload a file from my Linux computer to my DD-WRT router.
_________________
Mazi
UK non-geo DID #: +447031942574
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Fri Jan 30, 2009 2:25    Post subject: Reply with quote
sarpkaya92 wrote:
I can se jffs folder but I cannot paste anything it is only read only it says.
I can write to tmp folder.


did you enable and clean JFFS2 ??
sarpkaya92
DD-WRT User


Joined: 03 Aug 2007
Posts: 79

PostPosted: Fri Jan 30, 2009 2:31    Post subject: Reply with quote
scp: /jffs/denemeasddd.html: No space left on device

it gives such an error that file is just 10 bytes.
soulstace
DD-WRT Guru


Joined: 04 Aug 2007
Posts: 6427

PostPosted: Fri Jan 30, 2009 2:56    Post subject: Reply with quote
the error says it all. not enough space.

you need to find a smaller version of dd-wrt that allows you some free jffs space.
sarpkaya92
DD-WRT User


Joined: 03 Aug 2007
Posts: 79

PostPosted: Fri Jan 30, 2009 3:16    Post subject: Reply with quote
Ok I did everything. when I write that command:

killall httpd
httpd -p 81 -h /www
httpd -h /jffs

to save startup part when I enter to mainpage of my router it shows just a blank page. I have written it like Info.htm bla bla bla
index.htm is the correct thing I should write.
Thanx. Solved...
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum