I have setup two moodle in two local severs.i want to link these two severs
whan one user log in to the one couser he can access to othese course in other sever
Add in a third server and have both Moodles using the same data base. Alternatively, you can use a common database for Users, set your Authentication to an external database, and your courses to a local database. Otherwise you may want to use somethying like Moodle Networking. Also, you can use and LDAP server. Unfortunately, LDAP is not easy to set up and takes some patience. There are a number of different methodologies you could use, all of them are found here on the Authentication page.