Sync players positions

How can I sync the positions of the host’s player and client’s player?

I want to spawn both player, and through the host, change the position of the both players synchronizedly.

Try the NetworkTransform component
https://docs.unity3d.com/Manual/UNetSetup.html

You can use NetworkTransform component to sync position with the options like Sync Transform, Sync Rigibody, …
The first, add NetworkTransform to Network Game Object
Spawn Network Game Object with NetworkSpawn
Move Network Game Object on host, now, you can see Network Game Object on Client moving