From: Julien Moutinho Date: Tue, 19 Feb 2013 21:40:11 +0000 (+0100) Subject: Ajout : vm_remote : rule_mosh . X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=5e9744346618eafc6c69581de35be873fe25d2c3 Ajout : vm_remote : rule_mosh . --- diff --git a/README b/README index 5e9fa04..9f5cc10 100644 --- a/README +++ b/README @@ -24,7 +24,7 @@ TASK: obtenir une installation chrootable @host % ~/tool/ateliers/vm_host disk_umount TASK: obtenir une installation démarable @host % ~/tool/ateliers/vm_host chroot - @host % ~/tool/ateliersexport TRACE=1 LANG=C LC_CTYPE=C + @host % export TRACE=1 LANG=C LC_CTYPE=C @host % /root/tool/vm/vm_hosted init @host % exit TASK: initialiser la VM @@ -37,4 +37,9 @@ TASK: ajouter un administrateur @hosted % vm_hosted user_admin_add $user # NOTE: remplacer $user TASK: démarrer la VM @host % vm_host vm_start - @remote % vm_remote disk_send_key + @remote % ./vm_remote disk_key_send +TASK: pousser des changements locaux sur la VM + @remote % ./vm_remote push hosted + @hosted % vm_hosted git_reset +TASK: se connecter interactivement en root à la VM avec une connection SSH persistante + @remote % ./vm_remote mosh -l root diff --git a/vm_remote b/vm_remote index 20dc746..8fe0561 100755 --- a/vm_remote +++ b/vm_remote @@ -42,6 +42,9 @@ rule_git_push () { # SYNTAX: {host|hosted} $git_push_options rule_ssh () { "$tool"/vm_ssh $vm_fqdn "$@" } +rule_mosh () { + mosh --ssh="$tool/vm_ssh $*" $vm_fqdn + } rule__ssh_known_hosts_update () { rule ssh \ -o StrictHostKeyChecking=no \