]> gitweb.pimeys.fr Git - scripts-20-100.git/blob - ssh_borne
dos2unix à installer always
[scripts-20-100.git] / ssh_borne
1 #!/bin/bash
2
3 if [[ "`hostname`" != "fy" ]];
4 then
5 echo "À exécuter sur fy !"
6 exit 1
7 fi
8
9 borne=$1
10 shift
11
12 ssh -i /etc/crans/secrets/id_rsa_wifi.adm -o BatchMode=yes -o UserKnownHostsFile=~/.ssh/ssh_known_bornes -o ForwardX11=no -o StrictHostKeyChecking=no -o PasswordAuthentication=no -o ConnectTimeout=10 root@${borne}.wifi.crans.org $@