diff --git a/build.sh b/build.sh
index d04f6de636d169f032514c361a50be5cdd58bf80..8bda35f93ac317c149ad5ad5a6cee9bab042ed59 100755
--- a/build.sh
+++ b/build.sh
@@ -20,7 +20,7 @@ echo "compilation type: $comp_type"
 echo "Branch name: $branch"
 echo "GPU compilation: $with_gpu"
 
-ssh-keygen -b 2048 -t rsa -q -N ""
+ssh-keygen -q -t rsa -N '' <<< $'\ny' >/dev/null 2>&1
 
 echo "Content: $(ls $HOME/.ssh)"
 echo "Public Key: $(cat $HOME/.ssh/id_rsa.pub)"