Quantcast
Channel: Perform shell operation through secure shell - Super User
Browsing latest articles
Browse All 4 View Live

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 Article


Answer 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 Article


Answer 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 Article

Perform 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
Browsing latest articles
Browse All 4 View Live