checking file whether existed in another server or not

Hi,
i am in 272.22.22.32 server, and i want to check whether a file test.txt file exists in different server like 372.23.23.23 using shell script. can any one help me out.

Are these system are configured for trusted host?

How kind of session you will be using for connection eg ssh, telnet, ftp