title: fatal: could not read Username for 'https://gitlab.com': No such device or address on gitlab
body: <p>I am Try to push code with automate deploy and pull process to the production server, but I got an error in the pipeline build process like this</p>
  <pre><code>fatal: could not read Username for 'https://gitlab.com': No such device or address
  </code></pre>
  <p>here is a <code>.gitlab-ci.yml</code></p>
  <pre><code>script:
  - mkdir -p ~/.ssh
  - chmod 700 ~/.ssh
  - echo -e &quot;Host *\n\tStrictHostKeyChecking no\n\n&quot; &gt; ~/.ssh/config
  - echo &quot;$PRIVATE_KEY_STAGING&quot; &gt; ~/.ssh/id_rsa
  - chmod 600 ~/.ssh/id_rsa
  - ssh -p22 ec2-user@$SERVER_STAGING &quot;uname -a&quot;
  </code></pre>
  <p>How to Login to My Server and pull my updated code using Gitlab CI/CD?</p>
  <p>Thanks in advance</p>