How to supply the password in a ping command ?

for i in $var; do
for j in $var; do
if [ ! $i == $j ]
then
ssh -x -a "$host_login_name"@${i} ping -c 3 -s 3 ${j}
if [ $? -eq 0 ]
then
printf "Success\n"
else
printf "Failed\n"
fi
fi
done
done

Enter your box login user name : balvijay
Password:
PING xxxxxxxx.xxxxxxxxx.com (140.85.136.28) 3(31) bytes of data.
11 bytes from xxxxxxxx.xxxxxxxxx.com (140.85.136.28): icmp_seq=0 ttl=64
11 bytes from xxxxxxxx.xxxxxxxxx.com (140.85.136.28): icmp_seq=1 ttl=64
11 bytes from xxxxxxxx.xxxxxxxxx.com (140.85.136.28): icmp_seq=2 ttl=64

--- xxxxxxxx.xxxxxxxxx.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
, pipe 2
Success

Password:
PING yyyyyyy.yyyyyyyy.com (140.85.136.23) 3(31) bytes of data.
11 bytes from yyyyyyy.yyyyyyyy.com (140.85.136.23): icmp_seq=0 ttl=64
11 bytes from yyyyyyy.yyyyyyyy.com (140.85.136.23): icmp_seq=1 ttl=64
11 bytes from yyyyyyy.yyyyyyyy.com (140.85.136.23): icmp_seq=2 ttl=64

--- yyyyyyy.yyyyyyyy.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
, pipe 2
Success

I need to supply the password in the ssh line so that it does not ask from the command prompt,
and I like to supress the ping byte details.

How to do this ?

search for the tool "expect" to make interactive scripts...

Or search for password-less SSH which has been covered here before.