read string in a file

I'm writing a script for remote access. I wanted to put all my server's name on a file (server.txt) per line. and then the user will input the serversname and do ssh to it.

sample.
servers.txt
server1
server2
server3

user will be asked to put what server he would like to ssh with..say server1. when they input server1, they will automatically access the server remotel (ssh@server1)

is this what are you looking for ?

#!/bin/sh
echo -n "enter server:-";read server
ssh `whoami`@$server

thanks for the reply. i will have "servername" file on a remote server. this filename will consist of all the hostnames of my servers (say 30 servers). the script will tell a user to input the hostname, it will lookup on the servername file and if it's there, it will ssh to that server automatically. pls advise..thanks..

---------- Post updated at 06:15 PM ---------- Previous update was at 06:10 PM ----------

when it ssh, it will still actually stays on the remote machine and restart an instance on the chosen server.