Logging on using localhost

For many UNIX platforms, you can log on using localhost to refer to the local computer; for example:

root@localhost

This syntax does not work when logging on to a Macintosh computer, whether using the Macintosh UI, or remotely through ssh or FTP.