Execute remote command using security ssh instead of expect. and functional some code for further extention