Make the shell remember your ssh key

In the video "Setting up a Website ... " Luke talks about not having to type the password every time you ssh into your server.
However when you follow the tutorial it prompts the password for the ssh-key every time instead, this line removes that need to ask every time and only once.
This commit is contained in:
PrivateLalle 2022-10-28 13:57:35 +00:00 committed by GitHub
parent eaf4c12ee2
commit b8a859b613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,8 @@ _comp_options+=(globdots) # Include hidden files.
# vi mode # vi mode
bindkey -v bindkey -v
export KEYTIMEOUT=1 export KEYTIMEOUT=1
# Use keychain to load ssh-agent
eval `keychain --eval --quiet --noask --agents ssh id_rsa ~/.ssh/id_rsa`
# Use vim keys in tab complete menu: # Use vim keys in tab complete menu:
bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'h' vi-backward-char
bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'k' vi-up-line-or-history