Boa tarde. Estou com o seguinte erro na exeção da Action ao tentar se conectar a instância EC2:
Pseudo-terminal will not be allocated because stdin is not a terminal. Host key verification failed. Error: Process completed with exit code 255.
Alguém poderia me ajudar?
No momento meu arquivo .yaml está assim:
name: deploy-saleapp-on-AWS-EC2
on: push: branches: - main pull_request: branches: - main
jobs: deploy: runs-on: ubuntu-latest steps: - name: Deploy na instancia EC2 env: PRIVATE_KEY: ${{ secrets.AWS_EC2_PRIVATE_KEY }} # Chave SSH USER: ubuntu # Usuário SSH na instância EC2 HOST: 44.215.252.109 run: | echo "$PRIVATE_KEY" > ApplicationServerKeyPair.pem chmod 600 ApplicationServerKeyPair.pem ssh -i ApplicationServerKeyPair.pem $USER@$HOST echo "user $USER connected to $HOST by ssh"