WRT841N firmware upgrade via SSH possible?

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

WRT841N firmware upgrade via SSH possible?

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
WRT841N firmware upgrade via SSH possible?
WRT841N firmware upgrade via SSH possible?
2015-10-08 15:04:09
Model :

Hardware Version : Not Clear

Firmware Version :

ISP :

Hello,

I've been looking into automating the firmware upgrade process of our routers, and have found that while telnet is closed it does seem to have a SSH port open. As evidenced by this nmap scan:
[code]Starting Nmap 6.40 ( http://nmap.org ) at 2015-10-08 08:21 CEST
Nmap scan report for 192.168.0.1
Host is up (0.00063s latency).
Not shown: 996 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
1900/tcp open upnp
49152/tcp open unknown
MAC Address: 30:B5:C2:D9:D1:0E (Unknown)
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:linux_kernel:2.6
OS details: Linux 2.6.23 - 2.6.38
Network Distance: 1 hop[/code]

However, when I try to log into the service, this happens:
[code]$ ssh admin@192.168.0.1
admin@192.168.0.1's password:
PTY allocation request failed on channel 0
shell request failed on channel 0
[/code]

After some searching I've come to find that this is a problem that's either solved by mounting /dev/pts in fstab, which I can't do without SSH access, or by running an interactive session of bash manually. Trying the latter, this happens:
[code]$ ssh admin@192.168.0.1 "/bin/bash -i"
admin@192.168.0.1's password:
exec request failed on channel 0[/code]
Even tried with plain old sh, with the same result.

The question then is: Is it possible to upgrade the firmware via SSH, and if so could someone please be so kind as to tell me how?

Thanks. :)
  0      
  0      
#1
Options
4 Reply
Re:WRT841N firmware upgrade via SSH possible?
2015-10-10 09:24:24
Impossible.
  0  
  0  
#2
Options
Re:WRT841N firmware upgrade via SSH possible?
2015-10-12 15:07:29
Thanks for the reply.

Not quite what I hoped for, but an informative answer none the less. So the question then becomes, is there any other means I can employ to automate the firmware upgrades on?
  0  
  0  
#3
Options
Re:WRT841N firmware upgrade via SSH possible?
2015-10-13 09:43:45
TS, do you really have that many routers install that you need to resort to automation?
  0  
  0  
#4
Options
Re:WRT841N firmware upgrade via SSH possible?
2015-10-13 14:13:18
Yes, we do. Not only because of the number of routers, but also to make the process more resilient against human error.
  0  
  0  
#5
Options