When I try to use SSH in GitLab runner that runs on Windows 10 machine and start pipeline the runner hangs on SSH command. I think it waits password or something else. I have added host and target machine public keys to "Deploy Keys". I am able to connect target machine in PowerShell or CMD without any password but the runner can not do it. Any ideas?
1
There are 1 best solutions below
Related Questions in GIT
- problem to push files on a repository git
- diff3 output in git conflict style, including mergeable hunks
- Git Not In Sync with Local Branch
- Setting up the version control of .dotfiles while the .config is connected to a forked repo
- How to fix overriding the main branch in Git?
- I can't add text to "Message" in VS Code when committing to Git
- How can i redirect pull request from main branch to another branch
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Git/TortoiseGit : how to apply ONLY the changes from ONE commit from branch A, to branch B?
- How can I reintroduce username an password on git using fedora?
- GIT SKIP EMPTY DIRECTORIES
- Git smudge run once per checkout or per commit?
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- Set environment variable during push for GitHub Actions
- Android WebRTC compile
Related Questions in GITLAB
- There are no active runners online GitLab
- Error rising in gitlab configuration file
- Git commit asks for passphrase which I don't remember
- On Gitlab, is there a way to allow Maintaners to merge MRs even if some checks fail?
- Jenkins pipeline script: Accept merge request from Gitlab
- How to integrate GitLab code into SAP DataServices job?
- How to use dynamic value for start_in using environment variable in gitlab pipeline child job
- Replace React Variables in build folder before serving the build by express Server
- Gitlab CI/CD pipeline not destroying created Terraform created resources
- DevOps Preference: Point Solutions or Single Platform?
- GitLab release-job creates a release where asset is artifacts.zip instead of concrete file
- How to run particular jobs in GitLab CI/CD via GitLab API?
- How to start from a clean stage after maven release job fails in GitLab pipeline?
- Gitlab 16.10: The scheduler failed to assign job to the runner, please try again or contact system administrator
- Gitlab-runner cann't connect to gitlab server
Related Questions in CICD
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Shellscript touch command not working in jenkins pipeline
- Jenkins Docker Agent Configuration Issue: Connection Refused on Local Ubuntu Install
- Can you dynamically set a docker image LABEL to a git commit value when building an image with packer?
- Jenkins pipeline script: Accept merge request from Gitlab
- Unable to use env variable from prd environment context
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- Created Jenkins pipeline and added the script in the Pipeline Description.To check out the Project from the svn repository.NotWorking. Any Suggestion
- GitLab release-job creates a release where asset is artifacts.zip instead of concrete file
- Getting " Unauthorized Access" error in Git Actions(CI) when trying to run Fastlane(CD)
- avoid duplicated job in the gitlab-ci
- Can't figure out why the pipeline does not run
- Integrate Deployment status to Work Items in TFS
- pytest command used in gitlab CICD pipeline does not automatically pick test_* script and throws error "CoverageWarning: No data was collected."
- Jenkins install docker
Related Questions in RUNNER
- Calculating running amounts with uneven number of dates
- Cycle inside Runner; building could produce unreliable results
- Gitlab Runner Hangs on SSH
- Error in Flutter trying to build in Xcode: Command PhaseScriptExecution failed with a nonzero exit code
- Org-level self-hosted Github runner
- Run a Gitlab-ci job on runner from Jenkins pipeline stage
- Gitlab Self Hosted Runner .yarn2 cache
- We couldn't clone the repository. Try rerunning the pipeline Bitbucket
- helmsman stuck after displaying on debug helm plugin list
- delete gitlab-runner-helper volume
- github actions runner/work directory does not exist in local machine
- How can I fix broken delay in pygame?
- Docker Authentification: failed to fetch anonymous token
- Gitlab runner does not work for other users
- Gitlab CI/CD runner failing to call python3
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I assume you want to SSH to some server in your script. More details on the exact command that hangs would be helpful.
Apart from password SSH could be missing the host key so it waits for user input to accept it. If it is a single server try running
once in a job. This will update your
known_hostsfile. If you run on Windows that should be persistent.If the server keeps changing you might have to run the command on every build. This comes with some severe security drawbacks and makes your CI vulnerable to MITM attacks.