Skip to content

Commit

Permalink
Update pkg/library/ssh/event.go
Browse files Browse the repository at this point in the history
Co-authored-by: David Kwon <dakwon@redhat.com>
  • Loading branch information
vinokurig and dkwon17 authored Sep 9, 2024
1 parent afd7075 commit b8b43b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/library/ssh/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const commandLine = `SSH_ENV_PATH=$HOME/ssh-environment \
then ssh-agent | sed 's/^echo/#echo/' > $SSH_ENV_PATH \
&& chmod 600 $SSH_ENV_PATH && source $SSH_ENV_PATH \
&& ssh-add /etc/ssh/dwo_ssh_key < /etc/ssh/passphrase \
&& if [ -f $HOME/.bashrc ]; then echo "source ${SSH_ENV_PATH}" >> $HOME/.bashrc; fi; fi`
&& if [ -f $HOME/.bashrc ] && [ -w $HOME/.bashrc ]; then echo "source ${SSH_ENV_PATH}" >> $HOME/.bashrc; fi; fi`

// AddSshAgentPostStartEvent Start ssh-agent and add the default ssh key to it, if the ssh key has a passphrase.
// Initialise the ssh-agent session env variables in the user .bashrc file.
Expand Down

0 comments on commit b8b43b6

Please sign in to comment.