#!/bin/bash
if [ $# -ne 2 ] ; then
  echo "USAGE: $0 <user> <vm>"
  exit 1
fi

ssh -n root@$2 "grep ^$1: /etc/shadow" | awk -F: '{print $2}'
