connect, disconnect & shell
These commands manage the connection between your laptop and the robot (Wombat/Pi).
This page is the connection management reference. For the full SSH key setup flow and options, see the dedicated connect page.
Where the connection is saved
raccoon saves the connection in two places simultaneously:
config/connection.ymlinside the project — used when you run commands from this project directory~/.raccoon/config.ymlglobally — records the Pi as a “known Pi” soraccoon shellandraccoon doctorcan find it without a project
raccoon disconnect only drops the in-memory session state. It does not delete either saved address. To fully reset (e.g. when the robot changes IP), run raccoon connect <new-IP> — it overwrites both config files with the new address.
raccoon connect
raccoon connect [OPTIONS] ADDRESS
Connect to a Wombat via its IP address or hostname. Sets up SSH key authentication and saves the connection so every subsequent command works automatically.
| Option | Description | Default |
|---|---|---|
-p, --port PORT_NUMBER | Pi server port | 8421 |
-u, --user USERNAME | SSH username | pi |
--save / --no-save | Save connection to project config | --save |
Examples
# Connect to a Wombat with default credentials
raccoon connect 192.168.4.1
# Connect with a custom port and user
raccoon connect -u fox1 --port 8222 192.168.4.1
# Connect without saving (useful for one-off checks)
raccoon connect 192.168.4.1 --no-save
When a connection is saved, raccoon writes to two places:
config/connection.yml(inside your project) — used when running commands from this project~/.raccoon/config.yml— records this Pi globally soraccoon shellandraccoon doctorcan find it without a project
raccoon disconnect
Removes the current active connection and clears the session state.
raccoon disconnect
This does not delete the saved address from config/connection.yml or ~/.raccoon/config.yml. It only drops the in-memory session. To fully reset, also edit those files manually, or run raccoon connect to overwrite them with a new address.
raccoon shell
raccoon shell
Opens a full interactive SSH session to the connected Pi by replacing the current process (os.execvp). Once inside, you have a normal shell on the Pi — useful for inspecting logs, checking running processes, or manually running commands.
Address resolution
raccoon shell finds the Pi address in this priority order:
- The active session (if you ran
raccoon connectearlier in the same shell) - The
connection.pi_addressfield in the current project’sraccoon.project.yml - The first known Pi from
~/.raccoon/config.yml
If no address is found, raccoon prints an error and exits.
Example
# Connect first (once), then drop into a shell
raccoon connect 192.168.4.1
raccoon shell
# You are now on the Pi:
pi@raspberrypi:~ $ ps aux | grep raccoon
pi@raspberrypi:~ $ tail -f /var/log/raccoon/server.log
pi@raspberrypi:~ $ exit
raccoon shellcallssshfrom your PATH. Make suresshis installed (raccoon doctorwill flag it if not).