version-controlemacssshcvsrsh

CVS - Cannot exec rsh error


I am trying to use C-x v = to compare my current buffer with the repository file. But it gives error:

 cvs [diff aborted]: cannot exec rsh: No such file or directory
 cvs [diff aborted]: end of file from server (consult above messages if any)

Yes, I haven't installed rsh. But I already set CVS_RSH to ssh. Is there any other set I could change to let me use ssh instead of rsh when working in emacs with cvs?

By the way, I can't run any CVS commands under emacs, which are run very well in termial. Here are the cvs related setup in my login bash script:

 81 CVSROOT=zane@dda.uxmc.edu:/home/cvs
 82 CVS_SERVER=/usr/bin/cvs
 83 CVS_RSH=ssh
 84 export CVSROOT
 85 export CVS_SERVER
 86 export CVS_RSH

Solution

  • What's the result of M-:(getenv "CVS_RSH")RET? If it isn't "ssh", then you need to do one of these things: