By sending id_dsa.pub to STDOUT on the local machine and piping it to the STDIN of the remote ssh command to be run, 'cat -' (cat STDIN) can be using to pickup this data off the pipe, and send it out to authorized_keys on the remote system.

If you want to maintain the paranoia that the book does with regard to the file and directory permissions, use