User Tools

Site Tools


Bat over SSH - another approach

There are several ways to make BAT work over SSH. One approach is described in the article BAT over SSH .

But what if you want to run BAT on a Windows machine? Yes, it can be done, and it is easy, too.


This document, Bat over SSH - another approach is copyrighted © 2009 by Kevin Keane. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at .

Running BAT over SSH

What you need:

You do NOT need to have a full X Windows installation, although bat will require some X libraries.

Simply install and run the X server you chose.

Now all you need to do is establish an SSH tunnel to the bacula server (make sure you do that AFTER you started the X server). Make sure you turn on X forwarding. You find that in Putty under Connection | SSH | X11.

If you have problems making this work, odds are that SSH isn't setting the DISPLAY variable correctly. This can be a problem in particular if you used su to change to a different user.

To actually run bat, simply type the command “bat” on the Linux server. You may need to add the -c option to specify the location of the bat.conf file.

hints_tips/bat_over_ssh_-_another_approach.txt · Last modified: 2009/02/22 03:56 by kkeane