Skip to content

How To

Configure ssh proxy to start at Boot

Make sure that you have installed the cli

Mac OS

Add the following configuration to ~/Library/LaunchAgents/dev.brev.plist. If the directory ~/Library/LaunchAgents/ does not exist, you can create it with

$ mkdir -p ~/Library/LaunchAgents/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

start the service with:

launchctl bootstrap gui/$UID ~/Library/LaunchAgents/dev.brev.plist

check to see that it worked by runnning

launchctl list | grep brev

which should show output similar to:

4203    0   dev.brev


Add the the following configuration to /etc/systemd/user/brev.service or $HOME/.config/systemd/user/brev.service


Description=Brev SSH Proxy Daemon

ExecStart=brev run-tasks

enable and start the daemon by running :

$ systemctl --user enable brev
$ systemctl --user start brev

check status with

$ systemctl --user status brev

and you should see an output similar to:

● brev.service - Brev SSH Proxy Daemon
     Loaded: loaded (/etc/xdg/systemd/user/brev.service; disabled; vendor preset: enabled)
     Active: active (running) since Tue 2022-01-18 19:03:49 PST; 3s ago
   Main PID: 264331 (brev)
      Tasks: 11 (limit: 47870)
     Memory: 8.8M
        CPU: 59ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/brev.service
             └─264331 /opt/brev/bin/brev run-tasks

Jan 18 19:03:49 pop-os systemd[4294]: Started Brev SSH Proxy Daemon.
Jan 18 19:03:51 pop-os brev[264331]: 2022/01/18 19:03:51 creating new ssh config
Jan 18 19:03:51 pop-os brev[264331]: 2022/01/18 19:03:51 ensuring has include