Ttyname failed: Inappropriate ioctl for device

I am running my gitalb-ci.yml

image : node16


  • build_dev

stage: build_dev

  • Fluffa-fe


  • ‘which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )’
  • eval $(ssh-agent -s)
  • ssh-add <(echo “$SSH_PRIVATE_KEY”)
  • mkdir -p ~/.ssh
  • ssh-keyscan -H ‘’ >> ~/.ssh/known_hosts
  • ssh-keyscan | sort -u - ~/.ssh/known_hosts -o ~/.ssh/known_hosts
  • ‘[[ -f /.dockerinit ]] && echo -e “Host *\n\tStrictHostKeyChecking no\n\n” > ~/.ssh/config’
  • master
  • cd /var/www/html/
  • git stash
  • git pull
  • npm install && npm run build
  • chown -R www-data:www-data /var/www/html/
  • What are you seeing, and how does that differ from what you expect to see?

I added myself to Members as Maintener

The same porblem.
I added SSH_KEY variable but that does not improve things. How to fix this?

Thanks for taking the time to be thorough in your request, it really helps! :blush:

Hi, @milenkomarkovic can you please provide a bit more narrative of what you are trying to do?

I just ran into something similar while trying to authenticate to dockerhub (TL;DR needed to change the $HOME variable). But I can’t tell what you are trying to SSH into? Might be an issue with trying to allocate a tty.

I changed Gitlab runner to be the shell one,not ssh.Managed to solve this issue.