Use netstat command to check that ssh is listening on port 22.