fstab – Mount the partition of the Ubuntu computer on a different Ubuntu computer

I have two computers running Ubuntu 16.04 and 18.04 respectively and both are connected through TCP / IP. Right now I am accessing through SSH most of the time, but I want to permanently mount a certain partition of one computer in the file system of the other for convenience.

I tried to facilitate this with an entry in the fstab like this

// IP / home / User / media / myfolder cifs auto, uid = 1000, vers = 1.0, gid = 1000, user = username, pass = XXX 0 0

but that does not seem to work. What is the correct way to do this?