From 28c8dac8f115bc2e7d3c7ed961bc169a6953e204 Mon Sep 17 00:00:00 2001 From: Eduardo Cueto-Mendoza Date: Thu, 16 Jan 2025 15:04:29 +0000 Subject: [PATCH] Configuration files for gnupg and ssh --- .gnupg/common.conf | 1 + .gnupg/gpg-agent.conf | 13 +++++++++++++ .gnupg/gpg.conf | 2 ++ .gnupg/sshcontrol | 11 +++++++++++ .ssh/config | 41 +++++++++++++++++++++++++++++++++++++++++ .ssh/id_rsa_yubikey.pub | 1 + 6 files changed, 69 insertions(+) create mode 100755 .gnupg/common.conf create mode 100644 .gnupg/gpg-agent.conf create mode 100755 .gnupg/gpg.conf create mode 100644 .gnupg/sshcontrol create mode 100644 .ssh/config create mode 100644 .ssh/id_rsa_yubikey.pub diff --git a/.gnupg/common.conf b/.gnupg/common.conf new file mode 100755 index 0000000..5add401 --- /dev/null +++ b/.gnupg/common.conf @@ -0,0 +1 @@ +use-keyboxd diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf new file mode 100644 index 0000000..549e052 --- /dev/null +++ b/.gnupg/gpg-agent.conf @@ -0,0 +1,13 @@ +# https://github.com/drduh/config/blob/master/gpg-agent.conf +# https://www.gnupg.org/documentation/manuals/gnupg/Agent-Options.html +#pinentry-program /usr/bin/pinentry-gnome3 +#pinentry-program /usr/bin/pinentry-tty +#pinentry-program /usr/bin/pinentry-x11 +#pinentry-program /usr/local/bin/pinentry-curses +#pinentry-program /usr/local/bin/pinentry-mac +#pinentry-program /opt/homebrew/bin/pinentry-mac +pinentry-program /usr/bin/pinentry-curses +enable-ssh-support +ttyname $GPG_TTY +default-cache-ttl 60 +max-cache-ttl 120 diff --git a/.gnupg/gpg.conf b/.gnupg/gpg.conf new file mode 100755 index 0000000..740fb39 --- /dev/null +++ b/.gnupg/gpg.conf @@ -0,0 +1,2 @@ +use-agent +pinentry-mode loopback diff --git a/.gnupg/sshcontrol b/.gnupg/sshcontrol new file mode 100644 index 0000000..c61ee5c --- /dev/null +++ b/.gnupg/sshcontrol @@ -0,0 +1,11 @@ +# List of allowed ssh keys. Only keys present in this file are used +# in the SSH protocol. The ssh-add tool may add new entries to this +# file to enable them; you may also add them manually. Comment +# lines, like this one, as well as empty lines are ignored. Lines do +# have a certain length limit but this is not serious limitation as +# the format of the entries is fixed and checked by gpg-agent. A +# non-comment line starts with optional white spaces, followed by the +# keygrip of the key given as 40 hex digits, optionally followed by a +# caching TTL in seconds, and another optional field for arbitrary +# flags. Prepend the keygrip with an '!' mark to disable it. + diff --git a/.ssh/config b/.ssh/config new file mode 100644 index 0000000..a6bc3d1 --- /dev/null +++ b/.ssh/config @@ -0,0 +1,41 @@ +#Host eduardo-cueto.com +# HostName eduardo-cueto.com +# User deb-ser-adm +# IdentityFile ~/.ssh/id_admin + + #Host bsd-talk.com +# IdentityFile ~/.ssh/id_server + + #Host github.com +# IdentityFile ~/.ssh/id_gittest + + #Host unix-talk.com +# IdentityFile ~/.ssh/id_nitro_1 +# Port 33 + + #Host fd98:f0b:88f:10::1 +# IdentityFile ~/.ssh/id_nitro_1 +# Port 22 + + #Host 2a02:8084:d6be:1298::1 +# IdentityFile ~/.ssh/id_openwrt +# Port 22 + + #Host unix-talk.com + #IdentityFile ~/.ssh/id_secure + + #Host bsd-talk.com + #IdentityFile ~/.ssh/id_local_server_2 + + #Host 216.238.68.117 +# IdentityFile ~/.ssh/id_admin + + Host unix-talk.com + IdentitiesOnly yes + IdentityFile ~/.ssh/id_rsa_yubikey.pub + Port 33 + + Host unix-talk.com + IdentitiesOnly yes + IdentityFile ~/.ssh/id_rsa_yubikey.pub + Port 22 diff --git a/.ssh/id_rsa_yubikey.pub b/.ssh/id_rsa_yubikey.pub new file mode 100644 index 0000000..47660a5 --- /dev/null +++ b/.ssh/id_rsa_yubikey.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCprFFmFGk8tPme6drgEjrC4ZZvhKEM524A82aX+2l+ikWN83++4RLQe5IoOqE8S4J2wBv5JLsds8IJDigwaVPYOaRNse3cRnBId+ESdDsYT4d5hikYv0/JORpooynCX4ortBq0Us++IB3bwyZiRk3uS7SprDmUioTHtup1CO1yEWR9SppZjOOU/YYoeVAuLzLPL4TC64zwrUKrxDq/Q30db30Jt5/4VXoeAfL62LA8sCckEtpyhro5QHagzKypXkkOlp7CUPK1eUmVt1v6SIXMmw7R1X52SvTauMavWgiV1kW7bJlE89PJ5hHoPnfHEHMhIQs5JMvXGkSCwVsaKRcOSg9lII9Py4sCy3ky9l/7Xi/WTfG5xORZ5C3ea9oJcDwP3I5fIJ6cyr7W3R2Q7KhaT4NoNHbuq0kY/EfeQKHkaqWqJPEogg/1SQm6/oPUmg2hPId99+E3H/EAGkwxE8ZkfsAXbPO5mmZlxHKzLtA6MyQ8XKNnVi9rCPyhSbuRhN+HE7QaTvFue5mKtJqgTJfRz3l2IuN6oYXTh5fMnhM7P8BeZulZf2dg7ypKb9nncdjOVCt3sxLBwz2cO2vOVswjaxR/H+tqP+kCpmKtqoYa8PeMCkSvl7kxvdS26vjjfF6pUInb+SXF799IPbYY4vPfLSH1gk7VRa8z/DqvhHPCDw== cardno:000F_63793DE6