Dropbear

From Groll Wiki

(Difference between revisions)
Jump to: navigation, search
(Things to make at each startup)
Current revision (14:29, 4 March 2008) (edit) (undo)
 
(One intermediate revision not shown.)
Line 8: Line 8:
===Installing dropbear===
===Installing dropbear===
-
* Download current version (0.50) of dropbear compiled for pch-a100 [http://groll.troll.free.fr/files/dropbear-0.50-nmt.tgz dropbear-0.50-nmt.tgz]
+
* Download current version (0.50) of dropbear binaries compiled for pch-a100 [http://groll.troll.free.fr/files/dropbear-0.50-nmt.tgz dropbear-0.50-nmt.tgz]
* Login into pch-a100 using telnet (see [http://www.lundman.net/wiki/index.php/NMT:telnetd Lundman Wiki] for how to enable telnet)
* Login into pch-a100 using telnet (see [http://www.lundman.net/wiki/index.php/NMT:telnetd Lundman Wiki] for how to enable telnet)
* Install dropbear on the hard disk
* Install dropbear on the hard disk
cd /mnt/syb8634
cd /mnt/syb8634
tar xvfz dropbear-0.50-nmt.tgz
tar xvfz dropbear-0.50-nmt.tgz
-
====Things to make once====
 
-
In order to log on the pch-a100 using ssh server you must define a password for root (or another user) as there is no default password set.
 
-
We also create a presistant writable root home dir on the hard disk to keep configurations files
 
-
* create a writable root home
+
===Configurate dropbear===
-
mkdir -p /mnt/syb8634/home/root
+
For the configuration tasks, I will not publish the unix commands because I think that if you can't do it by yourself you should
 +
probably not use dropbear.
-
* generate server keys in a persistant dir
+
====Things to do once====
-
mkdir /mnt/syb8634/etc/dropbear
+
In order to log on the pch-a100 using ssh server you must define a password for root (or another user) as there is no default password set.
-
dropbearkey -t rsa -f /mnt/syb8634/etc/dropbear/dropbear_rsa_host_key
+
We also create a persistant writable root home dir on the hard disk to keep configurations files
-
dropbearkey -t dss -f /mnt/syb8634/etc/dropbear/dropbear_dss_host_key
+
-
 
+
-
 
+
-
====Things to make at each startup====
+
-
Most of system file are reset at the pch-a100 boot. So we must modify some of these system files after each boot to allow ssh login
+
-
* add root password and define root home
+
* Create a writable root home (optional)
-
sed -i 's/root:[^:]*:/root:'''yourencryptedpassword''':/' /etc/shadow
+
 
-
sed -i 's/\/root:\/bin\/true/\/mnt\/syb8634\/home\/root:\/bin\/sh/' /etc/passwd
+
* Generate server keys in a persistant dir
 +
 
 +
====Things to do at each startup====
 +
Most of system file are reset at the pch-a100 boot. So we must modify some of these system files after each boot to allow ssh login.
-
* add dropbear command in one of the startup scripts in /mnt/syb8634/etc
+
* Add root password and define root home
-
/mnt/syb8634/sbin/dropbear -d /mnt/syb8634/etc/dropbear/dropbear_dss_host_key -r /mnt/syb8634/etc/dropbear/dropbear_rsa_host_key
+
 
 +
* Add dropbear command in one of the startup scripts in /mnt/syb8634/etc
 +
 

Current revision

Contents


Enabling SSH

Dropbear SSH server is a lightweight SSH2 server (and client) which is particularly usefull for little linux based device like the pch-a100. The following explain how to install and configure dropbear on the pch-a100 internal hard disk. Some modifications must me made to use it without a hard disk.

Installing dropbear

  • Download current version (0.50) of dropbear binaries compiled for pch-a100 dropbear-0.50-nmt.tgz
  • Login into pch-a100 using telnet (see Lundman Wiki for how to enable telnet)
  • Install dropbear on the hard disk
cd /mnt/syb8634
tar xvfz dropbear-0.50-nmt.tgz

Configurate dropbear

For the configuration tasks, I will not publish the unix commands because I think that if you can't do it by yourself you should probably not use dropbear.

Things to do once

In order to log on the pch-a100 using ssh server you must define a password for root (or another user) as there is no default password set. We also create a persistant writable root home dir on the hard disk to keep configurations files

  • Create a writable root home (optional)
 
  • Generate server keys in a persistant dir
 

Things to do at each startup

Most of system file are reset at the pch-a100 boot. So we must modify some of these system files after each boot to allow ssh login.

  • Add root password and define root home
 
  • Add dropbear command in one of the startup scripts in /mnt/syb8634/etc
 
Personal tools