Slight change to Robert's answer, to make it idempotent so it's not an updated resource on every run:execute "enable ssh" docommand "/usr/sbin/systemsetup -setremotelogin on"not_if "/usr/sbin/systemsetup -getremotelogin | /usr/bin/grep On"action :runend--On Fri, Mar 1, 2013 at 1:47 PM, Christensen, Robert < " target="_blank"> > wrote:
execute "enable ssh" docommand "systemsetup -setremotelogin on"action :runend
Instructional Media Specialist
Instructional Media Services -- A division of ITS
From: Angus Buchanan [ " target="_blank"> ]
Sent: Friday, March 01, 2013 2:29 PM
To: " target="_blank">
Subject: [chef] Enabling Remote Login on OSX
I'm trying to enable remote login (ie sshd) on Mountain Lion.
service "sshd" doaction [:enable, start]
And variations on that theme (ssh, remotelogin, only start).
The only one which didn't result in an error was sshd, but that didn't result in sshd actually starting.
Wiki and Google offer no significant guidance. Anyone got this working? What incantation did you use?
Joshua Buysse, System Engineer
College of Liberal Arts, Office of Information Technology
University of Minnesota
"On two occasions I have been asked, 'Pray, Mr. Babbage, if youput into the machine wrong figures, will the right answers comeout?' I am not able rightly to apprehend the kind of confusion ofideas that could provoke such a question."
Archive powered by MHonArc 2.6.16.