Changes between Version 10 and Version 11 of setup


Ignore:
Timestamp:
Feb 18, 2019, 10:37:00 AM (21 months ago)
Author:
Sanahuja Guillaume
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • setup

    v10 v11  
    116116$ sudo service bluetooth restart
    117117}}}
     118
     119== Configure SSH hosts (optional) ==
     120
     121Alias can be defined in the ''~/.ssh/config'' file:
     122
     123{{{
     124$ mkdir -p ~/.ssh
     125$ nano ~/.ssh/config
     126}}}
     127and add a line for each target
     128{{{
     129Host uav1
     130   HostName 192.168.147.63
     131   User root
     132   StrictHostKeyChecking no
     133   UserKnownHostsFile=/dev/null
     134}}}
     135change the name (uav1 in this example) and its address (192.168.147.63 in this example).
     136
     137__NB__: the 2 last lines are optional, but it will help if you connect to 2 different targets with same IP. Yet, you will be exposed to the man in the middle attack (see [http://en.wikipedia.org/wiki/Man-in-the-middle_attack this page]), which should not be a big deal in our case (target as no root password...).
     138
     139Using this alias you can connect to the target that way:
     140{{{
     141$ ssh uav1
     142}}}
     143which is equivalent to
     144{{{
     145$ ssh root@192.168.147.63
     146}}}
     147moreover, the command
     148{{{
     149$ scp toto uav1:
     150}}}
     151is equivalent to
     152{{{
     153$ scp toto root@192.168.147.63:
     154}}}