<div dir="ltr"><div><div>Hi Andi,<br><br></div>Testing the project I thought the following could be of use (I hope it's the right way of doing things)<br><br>/srv/fai/config/scripts/SERVER_A/45-ssh-argv0<br>----<br>#!/bin/bash<br>

#<br># Prepare quick ssh link to all workstations<br># ref: <a href="http://www.nrtm.org/index.php/2009/06/09/ssh-argv0-for-the-lazzy-ssh-typer/">http://www.nrtm.org/index.php/2009/06/09/ssh-argv0-for-the-lazzy-ssh-typer/</a><br>

#<br><br>set -e<br><br></div># I considered this was better in a subdir but then, $PATH is not included. I'll check this out<br><div><div>#if [ ! -d /usr/local/bin/ssh ]; then<br>#    mkdir /usr/local/bin/ssh<br>#else<br>

#   echo "directory already exists"<br>#fi<br><br></div><div># this seems to be a global variable but I included it for test purposes.<br></div><div>WS_RANGE="50 149"<br><br>    NUM=0<br>    for i in `seq $WS_RANGE` ; do<br>

        NUMSTR=`printf "%02d" $NUM`<br>        ln -s /usr/bin/ssh-argv0 /usr/local/bin/workstation$NUMSTR<br>        NUM=$(($NUM+1))<br>    done<br>----<br></div><div>With this you can ssh a workstation just by typing its hostname.<br>

<br>Regards<br></div><div><br></div></div></div>