[wellylug] ssh scripting

Jamie Baddeley wellylug at vpc.co.nz
Fri May 20 20:26:59 NZST 2005


Is it possible to script ssh commands?

i.e. write a shell script like this:

---------
#!/usr//bin/ssh host.domain.co.nz
df -h

---------

The idea is so I can run remote commands via a script and have the
results via stdin...

It's assuming I've already shared the keys..

jamie





More information about the wellylug mailing list