Skip to content

SSH does not work through Gitlab Runner #992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rjpackito opened this issue Dec 15, 2017 · 9 comments
Closed

SSH does not work through Gitlab Runner #992

rjpackito opened this issue Dec 15, 2017 · 9 comments

Comments

@rjpackito
Copy link

Please answer the following

"OpenSSH for Windows" version
0.0.24.0

Server OperatingSystem
Windows Server 2012 R2

Client OperatingSystem
Windows Server 2012 R2

What is failing
ssh -n user@server xcopy

Expected output
no Error

Actual output
GetConsoleMode on STD_INPUT_HANDLE failed with 6

I run the csh with the -n flag, but the error repeats. Nothing helps. It is necessary for me to work with Gitlab Runner to work with the directory on the remote server. You are welcome. Help is needed.

@rjpackito
Copy link
Author

Please. Need your help.

@manojampalam
Copy link
Contributor

manojampalam commented Jan 30, 2018

If its not too late, did you try it with -T option?

@rjpackito
Copy link
Author

@manojampalam Yes, i tried

@manojampalam
Copy link
Contributor

Can you share your client side logs? (use -E option to write traces to a file)

@rjpackito
Copy link
Author

@manojampalam Sorry, but I will not find those logs. I started using plink.exe and my task was solved. I can not experiment with a productive machine

@rcl4444
Copy link

rcl4444 commented Jul 12, 2018

I also use the Gitlab Runner
command
ssh -n -T -E f:/1.log [email protected] ./restartSP.sh
1.log's content

GetConsoleMode on STD_INPUT_HANDLE failed with 6

SetConsoleMode on STD_INPUT_HANDLE failed with 6

@kainwei
Copy link

kainwei commented May 7, 2019

Hi All,
I met the same problem. And I have downloaded OpenSSH 8 (https://www.mls-software.com/opensshd.html). The problem has been fixed. Never see GetConsoleMode on STD_INPUT_HANDLE failed with 6 again. Thanks for you all.

@AndreeaItu
Copy link

@kainwei
I am encountering the same issue and I am trying to install the OpenSHH version you were pointing out(https://www.mls-software.com/opensshd.html ) but for me the installation is failing for Windows.
Could you please indicate how did you manage to have this version installed ,

Thank you in advance,

Andreea

@maertendMSFT
Copy link
Collaborator

This is a duplicate of this issue: #856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants