Ssh to remote server loop is breaking

hi All,

cat login.list

server1 userid1
server2 userid2
server3 userid3

----------------------------------------

#SSHSCRIPT.ksh
FILE=login.list
 
while read vah vah_id
do
       ssh  $vah -l $vah_id "pwd"
done < "$FILE"

-----------------------------------------

When i execute ksh -x SSHSCRIPT.ksh it executes only one loop and exist, Please assist me here

OUTPUT:

 ksh -x SSHSCRIPT.ksh 
 + FILE=login.list
 + read vah vah_id
+ IFS=
+ ssh server1 -l userid1 pwd
/server1/admin
+ read vah vah_id
+ IFS=

This is a fairly common question.

The fairly common answer is to use the -n option of SSH.

it worked with -n option.
thank you very much.