Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UNIX command from ARD to turn sshd off/on on clients



Thanks Dan,

Yep, under 10.3 client, I found the sshd service settings in the ssh file located in the /etc/xinetd.d.directories. I think I can just edit the ssh file directly or copy it over all the clients that need it changed using ARD.

When ssh is enable the file reads as:
service ssh
{
        disable = no
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/libexec/sshd-keygen-wrapper
        server_args     = -i
        groups          = yes
        flags           = REUSE IPv6
        session_create  = yes
}

When it is disabled it reads as:
service ssh
{
        disable = yes
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/libexec/sshd-keygen-wrapper
        server_args     = -i
        groups          = yes
        flags           = REUSE IPv6
        session_create  = yes
}

Under 10.4 I think I will have to push down a new XML ssh file that is in the xinetd.d directory.

After doing that do I have to run another command to tell the Xinetd to reload the file and turn the service on or off?
Thanks,
Jeff




On Aug 31, 2005, at 9:34 PM, Dan Shoop wrote:

At 5:25 PM -0700 8/31/05, 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?


Depends on if it's Panther or Tiger as to what you have to do, but disable it in xinetd or launchd respectively. You'll need to be able to use an editor.



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.


That isn't really what you want. That's the packet filter, the service is still running.



Is there an easy way to edit these plist XML files using UNIX commands from ARD.


Like an editor or plist editor? --

-dhan

---------------------------------------------------------------------- --
Dan Shoop AIM: iWiring
Systems & Networks Architect http:// www.iwiring.net/
email@hidden http:// www.ustsvs.com/


pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF 12B1 7840 3BE7 3736 DE0B

iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.


_______________________________________________ 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

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.