Ajout : vm_remote : rule_mosh .
authorJulien Moutinho <julm+burette@autogeree.net>
Tue, 19 Feb 2013 21:40:11 +0000 (22:40 +0100)
committerJulien Moutinho <julm+burette@autogeree.net>
Tue, 19 Feb 2013 22:12:41 +0000 (23:12 +0100)
README
vm_remote

diff --git a/README b/README
index 5e9fa04..9f5cc10 100644 (file)
--- 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
index 20dc746..8fe0561 100755 (executable)
--- 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 \