Update with new keychain aliases and manage Keychain absence

This commit is contained in:
2026-08-24 13:40:48 +02:00
parent 912d35eb2f
commit 3417983ad0
2 changed files with 8 additions and 10 deletions
-1
View File
@@ -8,5 +8,4 @@ Add-on for [main bashrc](https://gitea.kto.black/adminconf/rcs-general), specifi
* `install.sh` script copies above files to their respective destinations.
### TODO
* Manage `keychain` absence
* Set new "syncloud" alias(es)
+7 -8
View File
@@ -3,20 +3,19 @@
# byMasterKTO
## SSH configuration
# Start or load SSH agent TODO manage keychain absence
# Start or load SSH agent
if which keychain > /dev/null 2>/dev/null; then
eval $(keychain --quiet --eval)
else
echo "WARNING: keychain not found!"
fi
# Set Keychain aliases
alias kc-home='keychain ~/.ssh/home'
alias kc-project='keychain ~/.ssh/project'
alias kc-admin='keychain ~/.ssh/admin'
alias kc-nas='keychain ~/.ssh/nas'
alias kc-clean='keychain wipe'
alias kcd-home='ssh-add -d ~/.ssh/home'
alias kcd-project='ssh-add -d ~/.ssh/project'
alias kc-l='keychain list'
# Set SSH VNC alias (may be temporary, if we could set it up in SSH config file)
alias sshvnc='ssh -L 5901:localhost:5900'
# Set syncloud alias TODO
#alias syncloud='nextcloudcmd -u alex ~/Nextcloud https://cloud.kto.black'