Chapter 51. SSH
Enabling SSH (Section 46.6) on Mac OS X is fairly simple. Access the System Preferences from the Apple menu and double-click the Sharing folder. When this opens, click the Application tab and check the box labeled "Allow remote login." Quit System Preferences, and the machine is now configured for SSH access, remotely.
To enable telnet , rsh, or rlogin (if you're sure you want these processes), open the Terminal window and edit the /etc/inetd.conf file (using sudo (Section 49.11) if you're logged in as a member of the administration group (Section 49.7) or login as root). Remove the pound sign (#) from in front of whatever remote service you want to enable:
#ftp stream tcp nowait root /usr/libexec/tcpd ftpd -L
You'll need to restart the server, or you can restart inetd (Section 46.5) by typing:
kill -HUP 'cat /var/run/inetd.pid'
Copyright © 2003 O'Reilly & Associates. All rights reserved.