User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2
Jeff Chambers wrote:
Hi,
I have a simple question. I have a few 10.3 and 10.4 client machines
that I need to turn ssh off/on using the CLI. Is there a command that
I can run to turn this service on/off?
I got into the what I believe is the config file for it in
Library/Preferences/com.apple.sharing.firewall.plist. Do I just have
to edit this file and then bam it is enabled or disabled.
Is there an easy way to edit these plist XML files using UNIX commands
from ARD.
Following should do the trick:
On Panther:
sudo service ssh stop
(this edits the config file and also cares for restarting xinetd)
On Tiger:
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
(the -w flag disables the service by editing the config file)
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden