Can i open an ssh shell and execute linux commands on the kernel


I have a nas with two logical volumes and two shares. I would like to move files from one share to another. So rather than use cp on a remote client I would like to directly copy the files from one share to another using cp. This way the data will never leave the server and so should transfer much faster.

Thanks in advance for your help

Peter