Author Topic: Askozia with dropbear 0.50 SSH server  (Read 42839 times)

devon

  • Guest
Askozia with dropbear 0.50 SSH server
« on: January 21, 2008, 05:42:29 AM »
I've added dropbear 0.50 SSH server to generic r364, based on the work done with monowall images by Fred Mol.  The server is launched from the <shellcmd></shellcmd> tag in the config.xml file and the keys survive reboots in /cf/conf/. I've also added vi and a ftp client.

Is there any interest in a mod like this?
What other utilities should be included to make having remote access more useful?

Thanks,
Devon


Brian

  • Full Member
  • ***
  • Posts: 63
  • Karma: 1
    • View Profile
Re: Askozia with dropbear 0.50 SSH server
« Reply #1 on: January 25, 2008, 12:40:02 AM »
I can't think of much need for remote access to the box in this way. The only nice bit would be to look around the system to see where config files etc were.

devon

  • Guest
Re: Askozia with dropbear 0.50 SSH server
« Reply #2 on: January 28, 2008, 12:54:39 AM »
I've added inetd to run tftpd to host the config files and ringtones for my Cisco 7940 phones.  I can ssh to the pbx, re-mount /cf read/write, then I can add/edit phone config files with vi and move custom ringtones in with ftp. It's nice to have access to the manager interface via the remote shell, to see debug info in real-time.

Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Re: Askozia with dropbear 0.50 SSH server
« Reply #3 on: January 28, 2008, 10:31:04 AM »
How much bigger is your image compared to stock?

These sound like very useful mods. I have to be tough and say I don't wish to have them in the base image but would like to work them into module format for the future storage system. They could then be installed via the webGUI for those needing this functionality.

Brian

  • Full Member
  • ***
  • Posts: 63
  • Karma: 1
    • View Profile
Re: Askozia with dropbear 0.50 SSH server
« Reply #4 on: January 28, 2008, 06:26:00 PM »
I agree totally with Michael, these are very useful but should not be included in the base but offered as possibly an add on which could be installed from the web interface.

I have some of the Cisco 7940 phones so that would be a great help having tftp etc however for the most part people don't use it so a module would definately make sense

devon

  • Guest
Re: Askozia with dropbear 0.50 SSH server
« Reply #5 on: January 30, 2008, 05:50:25 AM »
The modded image is 13.4 MB. Dropbear adds 370KB, inetd adds 160KB.
I've also added csh, along with .cshrc in /root to allow me to set paths and have command history.

Brian

  • Full Member
  • ***
  • Posts: 63
  • Karma: 1
    • View Profile
Re: Askozia with dropbear 0.50 SSH server
« Reply #6 on: January 30, 2008, 03:56:49 PM »
Any chance of a copy of the image?

devon

  • Guest
Re: Askozia with dropbear 0.50 SSH server
« Reply #7 on: February 01, 2008, 07:07:33 AM »
Firmware can be downloaded here: www.pgtc.com/~dhendricks/firmware.html

A few more changes were made to the image, tftpd roots at /tftpboot which is mounted from a 3.5 mb slice I've added to the image.

I've tested this image on Virtual PC and an IBM 8364 with 128mb ram  booting from a 32mb CF card. I don't know if the image will work with a smaller flash card.

 If you upgrade an existing install with this firmware be aware that you will get a message about a digital signature not being present, and the <shellcmd></shellcmd> tags that launch dropbear and inetd  in the config.xml file <system></system> section will have to be added manually. You can look at these entries in the default config file by navigating to the /exec.php page and downloading the /conf.default/config.generic-pc.xml file.

Apologies to Michael...
« Last Edit: February 01, 2008, 04:18:23 PM by devon »

Michael

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1020
  • Karma: 49
    • View Profile
Re: Askozia with dropbear 0.50 SSH server
« Reply #8 on: February 01, 2008, 11:21:05 AM »
No apologies needed, it's fantastic that you're experimenting.

devon

  • Guest
Re: Askozia with dropbear 0.50 SSH server
« Reply #9 on: February 02, 2008, 06:01:57 AM »
Updated image to r395, no loger needs <shellcmd></shellcmd> xml tag in config.xml to launch dropbear or inetd.

Download here: www.pgtc.com/~dhendricks/firmware.html

nux

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: Askozia with dropbear 0.50 SSH server
« Reply #10 on: February 07, 2008, 03:58:31 PM »
Hi Devon,

have you got make also ALIX 2,3 image?

devon

  • Guest
Re: Askozia with dropbear 0.50 SSH server
« Reply #11 on: February 08, 2008, 06:51:26 AM »
I've uploaded an new r395 image to fix a couple of issues with tftpd:

1. Unclean shutdown prevents remount of /tftpboot
2. Firmware upgrades don't preserve contents of /tftpboot

Download: www.pgtc.com/~dhendricks/firmware.html

I will attempt to modify the ALIX23 firmware image, and post the  progress here.

nux

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
Re: Askozia with dropbear 0.50 SSH server
« Reply #12 on: February 08, 2008, 12:29:39 PM »
THanks, I'll wait anxiously...

;)

devon

  • Guest
Re: Askozia with dropbear 0.50 SSH server
« Reply #13 on: February 09, 2008, 04:04:27 AM »
Updated image to r403

Download: www.pgtc.com/~dhendricks/firmware.html

devon

  • Guest
Re: Askozia with dropbear 0.50 SSH server
« Reply #14 on: February 09, 2008, 07:27:54 PM »
I've uploaded the modified ALIX23X firmware image. I have no way to test this, let me know if it works...

Download: www.pgtc.com/~dhendricks/firmware.html