Take an ordinary guitar lead, cut or preferably de-solder the connection to the ground on one side.
Like this....
The trouble is at the moment you have two ground connections to the two amps, this will eliminate one but you won't be able to use the cable normally unless you re-make the ground connection!
Jim