Browse Source

Added yubikey as ssh key

master
Micah Halter 2 years ago
parent
commit
aa71ee5ef3
No known key found for this signature in database GPG Key ID: EEAD2A0928BE2083
  1. 1
      gnupg/.local/share/gnupg/gpg-agent.conf
  2. 1
      ssh/.config/systemd/user/default.target.wants/ssh-agent.service
  3. 10
      ssh/.config/systemd/user/ssh-agent.service
  4. 12
      ssh/.ssh/config
  5. 6
      zsh/.zshenv

1
gnupg/.local/share/gnupg/gpg-agent.conf

@ -1 +1,2 @@
enable-ssh-support
pinentry-program /usr/bin/pinentry

1
ssh/.config/systemd/user/default.target.wants/ssh-agent.service

@ -1 +0,0 @@
/home/micah/.config/systemd/user/ssh-agent.service

10
ssh/.config/systemd/user/ssh-agent.service

@ -1,10 +0,0 @@
[Unit]
Description=SSH key agent
[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

12
ssh/.ssh/config

@ -3,6 +3,18 @@ AddKeysToAgent yes
IdentityFile ~/.ssh/mehalter_rsa
IdentityFile ~/.ssh/gatech_rsa
Host git.mehalter.com
IdentitiesOnly yes
IdentityFile ~/.ssh/yubikey_rsa.pub
Host github.com
IdentitiesOnly yes
IdentityFile ~/.ssh/yubikey_rsa.pub
Host github.gatech.edu
IdentitiesOnly yes
IdentityFile ~/.ssh/yubikey_rsa.pub
Host aur.archlinux.org
IdentityFile ~/.ssh/mehalter_rsa
User mehalter

6
zsh/.zshenv

@ -42,7 +42,7 @@ export PGPASSFILE="$XDG_CONFIG_HOME/pg/pgpass"
export PGSERVICEFILE="$XDG_CONFIG_HOME/pg/pg_service.conf"
export PSQLRC="$XDG_CONFIG_HOME/pg/psqlrc"
export PSQL_HISTORY="$XDG_CACHE_HOME/pg/psql_history"
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
# export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export TEXMFHOME="$XDG_DATA_HOME/texmf"
export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
@ -51,6 +51,10 @@ export XINITRC="$XDG_CONFIG_HOME/X11/xinitrc"
export XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
# set up GPG/SSH
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
# set up julia env
export JULIA_LOAD_PATH=":"
export JULIA_DEPOT_PATH="$JULIA_HOME/depot"

Loading…
Cancel
Save