ssh login cvs

Hello,

I want to access a cvs server but I need to specify another user name i.e

suppose that my user account is AAA and I can log on to the cvs server using another account BBB i.e

AAA@local:~/Downloads$ ssh cvs
Permission denied (publickey).

But I can login to the system using this
AAA@local:~/Downloads$ ssh BBB@cvs

Now I want to access the cvs repository
AAA@local:~/Downloads$ cvs checkout cvsfolder
Permission denied (publickey).
cvs [checkout aborted]: end of file from server (consult above messages if any)

How can I tell the cvs to use account BBB to access the cvs server, or can I configure this in an automatic way

---------- Post updated at 05:53 AM ---------- Previous update was at 05:43 AM ----------

It is solved, Thanks

One neat trick is to copy your entire .ssh/ direcotry, scp -rp, to the other id/host, and then you are you, except any saved localhost/127.0.0.1 lines, which it will tell you about if you use them.