Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 356 Bytes

ssh.md

File metadata and controls

20 lines (17 loc) · 356 Bytes

SSH

  • GPG can be used instead of SSH
# .gnugpg/gpg-agent.conf
default-cache-ttl 600
max-cache-ttl 7200
enable-ssh-support
write-env-file ~/.gpg-agent-info

# gpg.conf
use-agent

# In zsh profile
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
  • Display public key of SSH and add it to services like AWS or github
ssh-add -L