]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
[ssh_borne] Maintenant les options fournies à sshb sont forwardées à ssh
authorVincent Le Gallic <legallic@crans.org>
Wed, 4 Jan 2017 10:32:11 +0000 (11:32 +0100)
committerVincent Le Gallic <legallic@crans.org>
Wed, 4 Jan 2017 10:33:31 +0000 (11:33 +0100)
ssh_borne

index d64048f5e45ff41b404c10d52dc33fb3a7936551..dc7027bd8dc84de34d6bc700b1ad3c8397cf60bb 100755 (executable)
--- a/ssh_borne
+++ b/ssh_borne
@@ -6,4 +6,7 @@ then
     exit 1
 fi
 
-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@$1.wifi.crans.org
+borne=$1
+shift
+
+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 $@