Thanks, Aaron...Using ssh is brilliant. I have a script I set up once called bashprompt that I stick in /etc and source from .bashrc, but this could be a more elegant solution (though somewhat higher maintenance).
--b On Thu, Sep 15, 2011 at 11:53 AM, Aaron Toponce <aaron.topo...@gmail.com>wrote: > On Thu, Sep 15, 2011 at 04:43:34PM +0200, Bonno Bloksma wrote: > > I have been looking at LocalCommand an PermitLocalCommand in the > > ssh_config file but the documentation is a bit sparse. > > Is it indeed all client sided, then how do I specify which command to use > for which server? > > Can you provide a few sample lines? > > I blogged about it here: http://pthree.org/?p=2007 > > > p.s. Will that work with a PuTTY session from a Windows client as well? > > Well, it depends. LocalCommand is a command that is running local to your > SSH client. I'm not sure what is available to you on a Windows machine with > PuTTY, but you can certainly dig around and see what you get. Or you could > install Cygwin, and get access to a unix-like environment, where you have > better tools to do something like this. > > -- > . o . o . o . . o o . . . o . > . . o . o o o . o . o o . . o > o o o . o . . o o o o . o o o >