User Tools

Site Tools


hints_tips:bat_over_ssh

A rather obvious one, but none the less:

Suppose you want to administrate a remote machine running Bacula Director with a GUI. Install BAT at your local machine. Look at the internet for information on SSH tunneling (for your OS) to find for instance this SSH info page at IBM Developerworks. And start to apply this to be able to use BAT over SSH:

ssh-bat.sh

#!/bin/sh
ssh -L 29101:localhost:9101 username@remotehost

Add a stanza in bat.conf or create a new bat.conf

Director {
  Name = remotehost-dir
  DIRport = 29101
  address = localhost
  Password = "secret"
}

apply sufficient rights to the bat.conf file

Now you can start BAT with

bat -c /etc/bacula/bat/conf

or whereever you defined the config file

hints_tips/bat_over_ssh.txt · Last modified: 2008/09/23 12:03 by olaf