gpg as ssh key + fix ced
This commit is contained in:
parent
7d04a6e3bf
commit
d5d8aee71b
2 changed files with 20 additions and 0 deletions
|
@ -17,6 +17,14 @@ function ced() {
|
||||||
echo "nah"
|
echo "nah"
|
||||||
return;;
|
return;;
|
||||||
esac
|
esac
|
||||||
|
# if the file exists but not in chezmoi
|
||||||
|
else
|
||||||
|
chezmoi source-path $1 > /dev/null
|
||||||
|
result=$?
|
||||||
|
if [ $result -ne 0 ]; then
|
||||||
|
echo "file doesn't exist in chezmoi.. adding"
|
||||||
|
chezmoi add $1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chezmoi edit $1
|
chezmoi edit $1
|
||||||
|
|
12
private_dot_gnupg/private_sshcontrol
Normal file
12
private_dot_gnupg/private_sshcontrol
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
C66893BBE79AC07D85A60FABB208B2916EE9B504
|
Loading…
Reference in a new issue