From b8a859b6137914e096874ed64a951597810ecebc Mon Sep 17 00:00:00 2001 From: PrivateLalle <29478339+LalleSX@users.noreply.github.com> Date: Fri, 28 Oct 2022 13:57:35 +0000 Subject: [PATCH] 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. --- .config/zsh/.zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 7e96734e..fd69c499 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -27,7 +27,8 @@ _comp_options+=(globdots) # Include hidden files. # vi mode bindkey -v 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: bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'k' vi-up-line-or-history