Multiple double quotes

hi

Need to run below command on remote server:

cmd -a "1 2" -b 3

If i run below, there's clash matching double quotes and fail.

ssh $server "cmd -a "1 2" -b 3"

I have few ideas which worked (like keeping the entire cmd in a file and copy it to remote server and then run that file) but i want to know if we can handle multiple double quotes in single line.

TIA
reddy

ssh "$server" 'cmd -a "1 2" -b 3'