Update with new keychain aliases and manage Keychain absence
This commit is contained in:
@@ -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.
|
* `install.sh` script copies above files to their respective destinations.
|
||||||
|
|
||||||
### TODO
|
### TODO
|
||||||
* Manage `keychain` absence
|
|
||||||
* Set new "syncloud" alias(es)
|
* Set new "syncloud" alias(es)
|
||||||
|
|||||||
+8
-9
@@ -3,20 +3,19 @@
|
|||||||
# byMasterKTO
|
# byMasterKTO
|
||||||
|
|
||||||
## SSH configuration
|
## SSH configuration
|
||||||
# Start or load SSH agent TODO manage keychain absence
|
# Start or load SSH agent
|
||||||
eval $(keychain --quiet --eval)
|
if which keychain > /dev/null 2>/dev/null; then
|
||||||
|
eval $(keychain --quiet --eval)
|
||||||
|
else
|
||||||
|
echo "WARNING: keychain not found!"
|
||||||
|
fi
|
||||||
|
|
||||||
# Set Keychain aliases
|
# Set Keychain aliases
|
||||||
alias kc-home='keychain ~/.ssh/home'
|
alias kc-admin='keychain ~/.ssh/admin'
|
||||||
alias kc-project='keychain ~/.ssh/project'
|
alias kc-nas='keychain ~/.ssh/nas'
|
||||||
alias kc-clean='keychain wipe'
|
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'
|
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
|
# Set syncloud alias TODO
|
||||||
#alias syncloud='nextcloudcmd -u alex ~/Nextcloud https://cloud.kto.black'
|
#alias syncloud='nextcloudcmd -u alex ~/Nextcloud https://cloud.kto.black'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user