Answer by tripleee for Perform shell operation through secure shell
As a direct example of your pseudocode,scp file remote:/tmp/filessh remote 'cd /tmp; cat file >another; rm another'scp remote:/tmp/another /tmpPerhaps you want to avoid the use of temprary files; if...
View ArticleAnswer by Usman Saleem for Perform shell operation through secure shell
ssh user1@server1 '/scripts/backup.sh' will run the script on remote machine. You can simply scp "backup.sh" at required location, invoke ssh and exit
View ArticleAnswer by user424669 for Perform shell operation through secure shell
Yes, this is possible. For example:$ echo 'date' | ssh localhostPseudo-terminal will not be allocated because stdin is not a terminal.Password:Sun Dec 16 22:15:08 CST 2012I suggest you create a script...
View ArticlePerform shell operation through secure shell
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...
View Article