Method: Windows::Exec#ssh_permit_user_environment
- Defined in:
- lib/beaker/host/windows/exec.rb
#ssh_permit_user_environment ⇒ Result
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Sets the PermitUserEnvironment setting & restarts the SSH service
84 85 86 87 |
# File 'lib/beaker/host/windows/exec.rb', line 84 def ssh_permit_user_environment exec(Beaker::Command.new("echo '\nPermitUserEnvironment yes' >> /etc/sshd_config")) ssh_service_restart() end |