Skip to content
New issue

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

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

Already on GitHub? # to your account

ControlMaster can't be used with Recording Proxy #1811

Closed
russjones opened this issue Mar 23, 2018 · 0 comments · Fixed by #1832
Closed

ControlMaster can't be used with Recording Proxy #1811

russjones opened this issue Mar 23, 2018 · 0 comments · Fixed by #1832

Comments

@russjones
Copy link
Contributor

Problem

At the moment, ControlMaster can't be used when using the recording proxy, for example the following command causes the below error:

$ ssh \
  -o ControlMaster=auto \
  -o ControlPersist=60s \
  -o User=rjones \
  -o ConnectTimeout=10 \
  -o ControlPath=/home/rjones/.ansible/cp/ansible-ssh-%h-%p-%r \
  node.example.com date
ERROR REPORT:
Original Error: *errors.errorString ssh: StdinPipe after process started
Stack Trace:
	/home/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/exec.go:434 github.com/gravitational/teleport/lib/srv.(*remoteExec).Start
	/home/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/termhandlers.go:78 github.com/gravitational/teleport/lib/srv.(*TermHandlers).HandleExec
	/home/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/forward/sshserver.go:646 github.com/gravitational/teleport/lib/srv/forward.(*Server).dispatch
	/home/rjones/Development/go/src/github.com/gravitational/teleport/lib/srv/forward/sshserver.go:619 github.com/gravitational/teleport/lib/srv/forward.(*Server).handleSessionRequests
	/usr/local/go/src/runtime/asm_amd64.s:2338 runtime.goexit
User Message: 

This is a problem for Ansible users because ControlMaster is used by default.

Workaround

Update ssh_args to the following in /etc/ansible/ansible.cfg:

ssh_args = ""
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant