[chef] Re: RE: Enabling Remote Login on OSX


Chronological Thread 
  • From: Joshua Buysse < >
  • To:
  • Subject: [chef] Re: RE: Enabling Remote Login on OSX
  • Date: Fri, 1 Mar 2013 13:53:09 -0600

Slight change to Robert's answer, to make it idempotent so it's not an updated resource on every run:

execute "enable ssh" do 
  command "/usr/sbin/systemsetup -setremotelogin on"
  not_if "/usr/sbin/systemsetup -getremotelogin | /usr/bin/grep On"
  action :run
end


On Fri, Mar 1, 2013 at 1:47 PM, Christensen, Robert < " target="_blank"> > wrote:
execute "enable ssh" do
  command "systemsetup -setremotelogin on"
  action :run
end

---
Robert Christensen
Instructional Media Specialist
Instructional Media Services -- A division of ITS
Wesleyan University

Hi,

I'm trying to enable remote login (ie sshd) on Mountain Lion.

I've tried:

service "sshd" do
 
  action [: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 you 
put into the machine wrong figures, will the right answers come 
out?' I am not able rightly to apprehend the kind of confusion of 
ideas that could provoke such a question."

  - Charles Babbage




Archive powered by MHonArc 2.6.16.

§