build details

Show: section status errors & todos local changes recent changes last change in-page changes feedback controls

Secure Shell (SSH)

Modified 2020-08-03 by frank-qcd-qk

Time: 5 minutes.

You will know about some useful shortcuts.

Now, we will tell you about some shortcuts that you can use to save some time.

in the future you will have to debug problems, and these problems might be harder to understand if you rely blindly on the shortcuts.

SSH aliases

Modified 2021-03-21 by Andrea F. Daniele

Instead of using

$ ssh duckie@ROBOT.local

You can set up SSH so that you can use:

$ ssh ROBOT

During your init_sd_card process described later in the book, the command will automatically setup ~/.ssh/config . If you are having trouble using it, you can follow the instructions below.

To manually create an SSH alias, create a host section in ~/.ssh/config on your laptop with the following contents:

    User duckie
    Hostname ROBOT.local

Note that this does not let you do

$ ping ROBOT

You haven’t created another hostname, just an alias for SSH.

However, you can use the alias with all the tools that rely on SSH, including rsync and scp.