Running a bash script

Roger McCalman roger at
Wed May 22 11:53:48 BST 2002

On Wed, May 22, 2002 at 11:48:30AM +0100, Mark Stewart wrote:
> Hi all,
> What I want to do:
> Run a shell script on my windows pc to connect passwordless via ssh2 to a FreeBSD 4.x PC (I can already do) run a shell script then the bash shell window to close.

By using ~/.ssh/authorised_keys[2] and ssh-keygen you can create public/private keys
to allow passwordless login.

> I was wondering how I would do this on the FreeBSD - can I pass ssh a path of a shell script to run.

ssh freebsd-host 'shell command line'

the sheel command line would probably want to use nohup and have a & to background
the process so that the ssh can complete.

I have never used ssh on windows but it works well from unix to unix.

Cheers, Roger

More information about the Ukfreebsd mailing list