SSH and GPG services

This commit is contained in:
Ryan Schanzenbacher 2023-05-17 00:37:34 -04:00
parent f1a4a1f149
commit 6a96bfe300
Signed by: ryan77627
GPG key ID: 81B0E222A3E2308E
4 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,3 @@
enable-ssh-support
pinentry-program /run/current-system/profile/bin/pinentry

View file

@ -0,0 +1,10 @@
# 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.

View file

@ -95,4 +95,7 @@
("waybar" ,(local-file "waybar" #:recursive? #t))
("alacritty" ,(local-file "alacritty" #:recursive? #t)) ))
(service home-files-service-type
`((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim")) )))))
`((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim"))
(".ssh/config" ,(local-file "ssh/config"))
(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol"))
(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf")) )))))

12
home-config/ssh/config Normal file
View file

@ -0,0 +1,12 @@
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"
Host rocApex
HostName 129.158.232.104
User root
Host linode
HostName 97.107.142.58
User root
Host *
KexAlgorithms -sntrup761x25519-sha512@openssh.com