ssh script
- From: markp <mark.pollard@xxxxxxxxxx>
- Date: Mon, 22 Sep 2008 07:45:29 -0700 (PDT)
I am trying to set up a script to to ssh into another machine and
perform some commands. I have managed to create the keygen and
transfer it accross so that I can ssh without being prompted for a
password. However each time I execute the script I only make it as far
as logging into the remote machine. A basic testscript I have tried is
the following.
#!/bin/Bash
ssh user@remote_machine
touch testfile
exit
Once I can perform this basic command then I can work on exactly what
I want the script to do. Unfortunately I cannot execute the touch or
exit command. I have tried using the wait command in between ssh and
touch but to no avail. Can somebody please help or point me in the
right direction.
.
- Follow-Ups:
- Re: ssh script
- From: jellybean stonerfish
- Re: ssh script
- From: jellybean stonerfish
- Re: ssh script
- From: pk
- Re: ssh script
- Prev by Date: Re: newline separated grep output
- Next by Date: Re: ssh script
- Previous by thread: free sextv1 tv - Free
- Next by thread: Re: ssh script
- Index(es):
Relevant Pages
|