Jump to content

Dropbear: Difference between revisions

702 bytes added ,  19 May 2010
Line 49: Line 49:
  DROPBEAR_EXTRA_ARGS=-s
  DROPBEAR_EXTRA_ARGS=-s


After do that, rebuild and reinstall the application.
After do that, rebuild and reinstall the application, then start the Dropbear server running the following script:


If you want to add this option in the target fs direclty, you need to do the same action in the script /etc/init.d/dropbear. After that, restart the application  
/etc/init.d/dropbear start
 
The first time that you run this script, you can see in log some messages about generating public and private keys, you can take the public key to add it in host computer, if Dropbear was started at this point, you can get the public key manually, this process must be explained in the following section.
 
If you want to add this option in the target fs directly, you need to do the same action in the script /etc/init.d/dropbear. After that, restart the application  


  /etc/init.d/dropbear restart  
  /etc/init.d/dropbear restart  


===How to get public and private keys of Dropbear in the target manually===
===How to get public and private keys of Dropbear in the target manually===


You can use "dropbearkey" tool to create public and private keys or see public keys
You can use "dropbearkey" tool to create public and private keys or see public keys.


To create an pair of keys you can run the following command:
To create an pair of keys you can run the following command:


  $ dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
  $ dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
The last command saves in ''/etc/dropbear/dropbear_rsa_host_key'' the private key, and prints the public key. If you want to get only the public key as you need to save in the authorized keys in the host, you can run the commmand
$ dropbearkey -y -f /etc/dropbear/dropbear_rsa_host_key | grep ssh-rsa


===How to set public key of Dropbear in the host===
===How to set public key of Dropbear in the host===
130

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.