Update 4 files
- /home/dot_ssh/run_onchanges_after_link-vagrant-authorized-keys.tmpl - /home/dot_ssh/private_config.tmpl - /home/dot_ssh/id_rsa.tmpl - /home/.chezmoitemplates/secrets/ssh-id-rsa
This commit is contained in:
parent
940389e273
commit
f442d6fdc7
4 changed files with 64 additions and 14 deletions
61
home/.chezmoitemplates/secrets/ssh-id-rsa
Normal file
61
home/.chezmoitemplates/secrets/ssh-id-rsa
Normal file
|
@ -0,0 +1,61 @@
|
|||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBzQ1g0d01NRjUvRG9hSjNk
|
||||
RG9SUnJuY2VYeTdyL1Zmcm9HaGhTRkl4TVNnCiticzNXaGZPTkhqNkhEcS9lNFRu
|
||||
ZHV6Ukdta2RVRUl6SXlmTHl0bUVnQ3cKLS0tIERoTFlxRWVweXhOQ29OTVUrSnJn
|
||||
cGk1dnJCdkxtdGtDYTduS2llRnRxZ1UK/gF/6oKewFiNVep6hLOK0a219FnlkRPu
|
||||
fzcMTYrjHkMTVXe9q0DwLEk8TO9UiVOfDX0jUxBCsnHZTWMjff5gNDwwtBAbCEly
|
||||
5ZtC+UhA8CrO2PD+XELcauj4F7fM6jMh3MZ7FDB3NANTWh8UfnD46p56oisuTkme
|
||||
tW910cdoEnXfYbfguk6ROT6cmYlRhZsUbPULC1aIQdvbG5363smrwPiTNAIW9dM2
|
||||
sxB+N7fPGm917DF95eKY9k14EMmrOk0IZezOiwzzGH6NpGyXjtENeCczxdaQDX0V
|
||||
UGHjR1okfbNGckvGG8Y5lnhIfo9vNjOKg6YUgi8eEBZVeW+EXc+XcqZvQnzUTHjh
|
||||
ob3oLWrU5eUe9CRbz7ns3rcKyW/y+7k5mBEWYILMYIZwFV8CCxfCq9zBtYH69TA6
|
||||
7yn1FJgJLEhhiYPv3F+QyvXdonvf+V2OiJe0qxy3EFLH9gyn58DD7VpJyvplE5jJ
|
||||
vtMqXIyUa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||
9xCxaQvQHhGZlYxBvE2nOfgzXSI77PS6iTHDurORP9vIIDmuzIKc3n2F+0QCzU9C
|
||||
SgiIuurg
|
||||
-----END AGE ENCRYPTED FILE-----
|
3
home/dot_ssh/id_rsa.tmpl
Normal file
3
home/dot_ssh/id_rsa.tmpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-id-rsa")) -}}
|
||||
{{ includeTemplate "secrets/ssh-id-rsa" | decrypt -}}
|
||||
{{ end -}}
|
|
@ -1,7 +1,3 @@
|
|||
# Host *+*
|
||||
# UserKnownHostsFile /dev/null
|
||||
# StrictHostKeyChecking=no
|
||||
# ProxyCommand ssh -v $(echo %h | sed -e 's/+[^+]*$//; s/\([^+=]*\)=\([^+]*\)$/\2 -l \1/; s/^\([^+:]*\):\([0-9]*\)+/-p \2 \1+/' ) -W $(echo %h | sed -e 's/^.*+//; s/:.*$//;'):$(echo %h | sed -e ' s/^.*+//; /:/!s/^.*/22/; s/^.*://' ;)
|
||||
Host *
|
||||
AddKeysToAgent no
|
||||
Compression no
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
{{ includeTemplate "universal/profile" }}
|
||||
{{ includeTemplate "universal/logg" }}
|
||||
|
||||
### Link authorized_keys to authorized_keys.vagrant if username is vagrant
|
||||
if [ "$USER" == 'vagrant' ]; then
|
||||
logg info 'Linking authorized_keys.vagrant to authorized_keys in the .ssh folder'
|
||||
ln -s "$HOME/.ssh/authorized_keys.vagrant" "$HOME/.ssh/authorized_keys"
|
||||
fi
|
Loading…
Reference in a new issue