Perform shell operation through secure shell

Posted by Ben on Super User See other posts from Super User or by Ben
Published on 2012-12-17T04:10:02Z Indexed on 2012/12/17 11:05 UTC
Read the original article Hit count: 117

Filed under:
|
|
|
|

Is it possible to perform a shell operation from a bash script through a secure shell.

Here is an example of why you may want to do this. Lets say you have a simple unix operating system that you need only build and run on, but you want to do all of the development on another machine. I want to write a bash script that has the following functionality:

scp file to location on other machine
ssh to other machine
cd into correct directory 
make 
run program
scp results to file on original computer
exit ssh

Is this remotely possible? (Pardon the Pun :p)

© Super User or respective owner

Related posts about bash

Related posts about shell