Check login credentials using SSH connection