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: Using ARD to start and stop SSH daemon



I think I will just push this command out to all the machines using ARD.

echo "AllowUsers myadminusername" >> /etc/sshd_config

This only allow me to ssh in.

On Aug 19, 2005, at 2:51 AM, Geoff Lee wrote:


On 19 Aug 2005, at 02:06, David Miller wrote:


Does anyone know the correct syntax to start or stop the SSH daemon for MacOS 10.3 and 10.4? I would like to only turn it on when I need to edit files in places like /etc. Thanks.


On 10.4:

To stop: launchctl unload /System/Library/LaunchDaemons/ssh.plist
To start: launchctl load /System/Library/LaunchDaemons/ssh.plist

On 10.3:

edit /etc/xinetd.d/ssh and kill -HUP xinetd. There's probably a better way to do this but I don't have a 10.3 machine handy right now.

Or, you could just leave ssh running and use the ipfw to block and un-block access to port 22


HTH

-geoff

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list (Client- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/g.lee% 40ed.ac.uk


This email sent to email@hidden



______________________________________ Geoff Lee <email@hidden> Computing Support, Architecture School of Arts, Culture and Environment University of Edinburgh 20 Chambers St, Edinburgh, Scotland, EH1 1JZ Tel: +44 (0)131 650 8020 ______________________________________



David Miller Desktop Support email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Client-management mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden
References: 
 >Using ARD to start and stop SSH daemon (From: David Miller <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.