ssh: fix compiler warning converting ssize_t to int