Jump to content

Dropbear: Difference between revisions

984 bytes added ,  15 October 2014
no edit summary
mNo edit summary
No edit summary
Line 14: Line 14:
  -> File System Configuration
  -> File System Configuration
   -> Select target's file system software  
   -> Select target's file system software  
     [*] dropbear-0.52 (SSH Server)
     [*] dropbear-0.53 (SSH Server)


3- When Dropbear is selected, scp and ssh are showed  
3- When Dropbear is selected, scp and ssh are showed  


  -*- dropbear-0.52 (SSH Server)
  -*- dropbear-0.53 (SSH Server)
  [*]  Enable dbclient (SSH Client)
  [*]  Enable dbclient (SSH Client)
  [*]  Enable scp
  [*]  Enable scp
Line 67: Line 67:
From target or host:
From target or host:
  scp $LOCAL_FILE user@host:/$REMOTE_DIRECTORY
  scp $LOCAL_FILE user@host:/$REMOTE_DIRECTORY


== Example ssh client connecting to target hardware using a password ==
== Example ssh client connecting to target hardware using a password ==
Line 77: Line 75:


<pre>
<pre>
mkdir -p /home
mkdir -p /root
adduser tfischer
passwd root
</pre>
</pre>


On your host computer (adjust user name and target hardware name/IP address as needed):
On your host computer (adjust target hardware name/IP address as needed):


<pre>
<pre>
ssh tfischer@10.0.0.167
ssh root@10.111.0.42
</pre>
</pre>


Line 104: Line 102:




BusyBox v1.14.2 (2010-03-21 09:21:49 MDT) built-in shell (ash)
BusyBox v1.20.2 (2014-10-13 18:36:29 MDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.
Enter 'help' for a list of built-in commands.


~ $
~ #
</pre>
</pre>


== Adding root ssh login to development directory ==
If you always want the target file system to contain the same ssh keys and ability to use ssh to log in as root, run the steps above (using root NFS mount) and verify you can ssh in as root user, then:
<pre>
make config # Kernel configuration -> Extra kernel arguments: davinci_emac.ethaddr=00:0C:0C:A0:02:b5
mkdir -p $DEVDIR/fs/overlay/root  $DEVDIR/fs/overlay/etc/dropbear
cp $DEVDIR/fs/fs/etc/dropbear/* $DEVDIR/fs/overlay/etc/dropbear
cp $DEVDIR/fs/fs/etc/passwd $DEVDIR/fs/overlay/etc
touch $DEVDIR/fs/overlay/root/.gitignore
git add $DEVDIR/fs/overlay/root/.gitignore $DEVDIR/fs/overlay/etc/dropbear/* $DEVDIR/fs/overlay/etc/passwd bsp/mach-*/bspconfig
</pre>
These steps are useful when developing the product.  You should delete the keys from the overlay file system before generating production code.
The above steps should not be used if more than one board will be on the same subnet as all boards will have the same ethernet MAC address.


==Setting keys to get ssh connectivity without password requests==
==Setting keys to get ssh connectivity without password requests==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.