Keeping a checked out copy – CVS over SSH

The CVS manual talks about keeping a checked out copy with every commit in another directory – most common for us being the webroot. However I could not find on the web how to do the same when you are using CVS over SSH (and only SSH)

In loginfo put

^cyclic-pages (date; cat; (sleep 2; cd /u/www/local-docs; cvs -q -d :ext:$USER@localhost:$CVSROOT update -d ) &) >> $CVSROOT/CVSROOT/updatelog 2>&1

Instead of what is recommended in the manual.

It took us a while to realise that $USER would work and yes the caveat is that all valid $USER@localhost should be able to login without having to provide a password, but I am sure everyone know how to generate ssh keys.

P.S. Yes I am still using CVS