Sha256: 92794430dee435e53533445c65c56ab76d6c0d40ab91b22489fdcf5d7685490a

Contents?: true

Size: 994 Bytes

Versions: 23

Compression:

Stored size: 994 Bytes

Contents

# How to Forward ssh(1) Agent

`ssh(1)` agent forwarding can is activated in the `CONFIG` section of the hosts
file:

~~~yaml
HOSTS:
  ...
CONFIG:
  forward_ssh_agent: true
~~~

Beaker will then make the ssh agent running on the beaker coordinator available to the Systems Under Test (SUT).  There is
a gotcha though: the agent socket file in the SUT is only available
to the user who signed in.  If you want to access remote machine resources as
another user, you *must* change the socket permission.

A dirty hack is to `chmod -R 777 /tmp/ssh-*` before changing to another user
and relying on `$SSH_AUTH_SOCK`.

Example:

~~~puppet
exec { '/bin/chmod -R 777 /tmp/ssh-*':
} ->
vcsrepo { '/var/www/app':
  provider => 'git',
  source   => 'https://example.com/git/app.git',
  user     => 'deploy'
}
~~~

## Cross SUT access

If you need to be able to SSH between SUTs while running Beaker acceptance tests, please refer to the [enabling cross SUT access](enabling_cross_sut_access.md) document

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
beaker-3.35.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.34.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.33.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.32.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.31.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.30.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.29.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.28.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.27.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.26.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.25.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.24.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.23.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.22.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.21.1 docs/how_to/ssh_agent_forwarding.md
beaker-3.21.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.20.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.19.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.18.0 docs/how_to/ssh_agent_forwarding.md
beaker-3.17.0 docs/how_to/ssh_agent_forwarding.md