Move multiple files from one directory to another in SFTP server

I want to move/rename specific files from one directory to another directory in SFTP server. Only file name having suffix should move from /dir/ to /dir/temp/?

for file in $(echo 'ls /dir/suffix*.csv' | SFTP -i username@host); do
rename $file /dir/temp/$file  
done
rename /dir/suffix*.csv /dir/temp/ | SFTP -i username@host