Fixed issue with using pub sshkey instead of priv for ssh, added more print statements