add ssh function check at build