File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2222SSH_PORT=${SSH_PORT:- 22}
2323
2424# Define the default SSH arguments that apply for both key and password flows
25- SSH_ARGS=" -o StrictHostKeyChecking=no -p ${SSH_PORT} ${SSH_USERNAME} @${SSH_HOST} "
25+ SSH_ARGS=" -o StrictHostKeyChecking=no -o LogLevel=ERROR - p ${SSH_PORT} ${SSH_USERNAME} @${SSH_HOST} "
2626
27- eval " $( ssh-agent -s) "
27+ eval " $( ssh-agent -s) " & > /dev/null
28+ echo " SSH Agent started"
2829
2930if [ -n " ${SSH_KEY} " ]; then
3031 echo " Using SSH key..."
@@ -39,7 +40,7 @@ if [ -n "${SSH_KEY}" ]; then
3940 if [ -z " ${SSH_KEY_PASSPHRASE} " ]; then
4041 echo " SSH Key Passphrase is empty, just adding the key to the SSH agent..."
4142 # Add the private key to the SSH agent
42- ssh-add ./private.key > /dev/null
43+ ssh-add -q ./private.key & > /dev/null
4344 echo " SSH Identity Added"
4445 else
4546 echo " SSH Key Passphrase is set, creating a script to echo the passphrase and adding the key to the SSH agent..."
@@ -48,7 +49,7 @@ if [ -n "${SSH_KEY}" ]; then
4849 chmod +x ./ssh-passphrase
4950
5051 # Set the permissions
51- DISPLAY=1 SSH_ASKPASS=" ./ssh-passphrase" ssh-add ./private.key > /dev/null
52+ DISPLAY=1 SSH_ASKPASS=" ./ssh-passphrase" ssh-add -q ./private.key & > /dev/null
5253 echo " SSH Identity Added"
5354 fi
5455
You can’t perform that action at this time.
0 commit comments