Method: Mac::Exec#ssh_permit_user_environment
- Defined in:
- lib/beaker/host/mac/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
22 23 24 25 26 27 28 |
# File 'lib/beaker/host/mac/exec.rb', line 22 def ssh_permit_user_environment ssh_config_file = '/etc/sshd_config' ssh_config_file = '/private/etc/ssh/sshd_config' if /^osx-/.match?(self['platform']) exec(Beaker::Command.new("echo '\nPermitUserEnvironment yes' >> #{ssh_config_file}")) ssh_service_restart() end |