This is the relevant chunk of code that is required:
export CVSROOT=:ext:cvs.company.com:/usr/local/src/CVS export CVS_RSH=/usr/bin/ssh