Cheerful Curmudgeon

A complete lack of ideas and the power to express them.

  • Home
  • About Me
    • Art Zemon’s PGP Key
    • Privacy Policy
  • Bede BD-4C
    • Hall of Fame
  • Piper Arrow

Adding ssh-agent to a Chromebook Linux VM

December 5, 2018 Art Zemon

I just got a Google Slate, largely because it can run Linux programs. By default, ssh-agent is not running when you open a terminal window. To add it, I created and enabled a systemd service for ssh-agent and I created the environment variable.

Create ~/.config/systemd/user/ssh-agent.service

[Unit]
Description=ssh-agent service

[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK

[Install]
WantedBy=default.target

Enable the service by running this.

systemctl enable –user ssh-agent.service

Check that it starts properly.

artzemon@penguin:~$ systemctl start --user ssh-agent.service
artzemon@penguin:~$ systemctl status --user ssh-agent.service
● ssh-agent.service - ssh-agent service
   Loaded: loaded (/home/artzemon/.config/systemd/user/ssh-agent.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-12-05 13:31:46 UTC; 11min ago
 Main PID: 98 (ssh-agent)
   CGroup: /user.slice/user-1000.slice/[email protected]/ssh-agent.service
           └─98 /usr/bin/ssh-agent -D -a /run/user/1000/ssh-agent.socket

Add this to ~/.profile to set the environment variable for the socket.

if [ -e $XDG_RUNTIME_DIR/ssh-agent.socket ]; then
    export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
fi

Shut down the Linux VM by hovering over the terminal icon in the ChromeOS shelf, right-click, and choose “Shut Down Linux.”

ssh-agent will be running the next time you start the Linux VM.

Software

Recent Posts

  • Stretching a Photo April 21, 2025
  • There are Elephants in the Room April 10, 2025
  • Let’s Eliminate Real WFA April 1, 2025
  • Thumb Wrist Neck Waist Height March 18, 2025
  • Avoid Targeted Advertisements February 5, 2025

About Art Zemon

Omni-curious geek. Husband. Father. Airplane builder & pilot. Bicyclist. Photographer. Computer engineer.

Comments

  1. Jule Turnoy says

    December 5, 2018 at 4:45 pm

    You speak/ write advanced computerese. How about a Dictionary for Dummies when the plane is up and flying?

Categories

  • Aviation (261)
    • Bede BD-4C (174)
    • Soaring (5)
  • Bicycling (37)
    • St. Louis to Atlanta (8)
    • St. Peters to Minneapolis (18)
  • Business (48)
  • Cabbages & Kings (24)
  • Communicating (37)
  • Ecology (21)
  • Economy (8)
  • Family (35)
  • Finding the Good (43)
  • Fun (188)
    • Six Word Stories (8)
  • Gardening (5)
  • Genealogy (5)
  • Government (35)
  • Health (67)
  • Judaism (10)
  • Men (12)
  • Mideast (5)
  • Movies (8)
  • Philosophy (15)
  • Photography (27)
  • Rants & Raves (103)
  • Recommendations (35)
  • Safety (37)
  • Science (22)
    • Biology (7)
    • Physics (7)
    • Pyschology (3)
  • Technology (195)
    • eBooks (7)
    • Internet (66)
    • Software (63)
    • VOIP (5)
  • Travel (43)
  • Tzedakah (12)
  • Women (5)

You Will Also Like

  • Art Zemon's Genealogy
  • Art Zemon's Photos
  • Mastodon @babka.social
  • Mastodon @raphus.social

Search

#DonorForLife

6 gallon blood donor badge
#DonorForLife - Give Blood - Save Lives

Archives

Copyright © 2025 · Daily Dish Pro Theme on Genesis Framework · WordPress · Log in