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
---
Robert Christensen
Instructional Media Specialist
Instructional Media Services -- A division of ITS
Wesleyan University
From: Angus Buchanan [ " target="_blank"> ]
Sent: Friday, March 01, 2013 2:29 PM
To: " target="_blank">
Subject: [chef] Enabling Remote Login on OSX
Hi,
I'm trying to enable remote login (ie sshd) on Mountain Lion.
I've tried:
service "sshd" doaction [:enable, start]
end
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?
-aob
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."- Charles Babbage
Archive powered by MHonArc 2.6.16.