get json data from ssh server