10.09.2016 Views

Hacking_and_Penetration_Testing_with_Low_Power_Devices

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

76 CHAPTER 4 Filling the toolbox<br />

FIGURE 4.7<br />

Installing new software in Eclipse.<br />

server to the target Beagle by executing the comm<strong>and</strong> sudo apt-get install ssh<br />

gdbserver. On the development PC, you may optionally create entries in the /etc/<br />

hosts file to avoid using raw IP addresses in Eclipse. The format for the /etc/hosts<br />

file is straightforward, just create a line of the format “ myBeagle”<br />

<strong>and</strong> the name myBeagle can be used to refer to your target Beagle.<br />

SSH to the target Beagle if you have not already done so. This is required to set up<br />

the appropriate encryption keys. You can optionally set up your Beagle to allow SSH<br />

<strong>with</strong>out requiring a password by doing the following. First, create a key by executing<br />

the comm<strong>and</strong> ssh-keygen <strong>and</strong> accept the defaults by pressing Enter three times. Second,<br />

copy the key to the Beagle <strong>with</strong> the comm<strong>and</strong> ssh-copy-id -i /.ssh/<br />

id_rsa_pub ubuntu@. Finally, verify that everything is working<br />

by typing ssh ubuntu@. You should not be prompted for<br />

a password.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!