I want to make a script that will connect to a server and do some CRUD operation on the server and again return to local. I do not want to upload the script to server..
I have made a script that will help to connect to the server but I am not able to do any any operation through the help of the script.
please make my doubt clear regarding the fact that weather its possible to run a local script (as in my case ) in the remote server.
If yes how please specify the script also for which I will be grateful to you .
till now my script is
#!/usr/bin/expect set ip neviss set user user set password 1234 spawn ssh "$user\@$ip" expect "Password:" send "$password\r"; interact ( after this line any command is not getting executed) ls -lrt