{"id":3450,"date":"2022-02-28T23:33:57","date_gmt":"2022-02-28T14:33:57","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=3450"},"modified":"2022-03-01T00:38:24","modified_gmt":"2022-02-28T15:38:24","slug":"mosh-does-not-start","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2022\/02\/28\/mosh-does-not-start\/","title":{"rendered":"mosh\u304c\u8d77\u52d5\u3057\u306a\u304f\u306a\u3063\u3066\u56f0\u308b"},"content":{"rendered":"<p><a name=\"preamble\"><\/a><\/p>\n<p>Debian sid amd64\u74b0\u5883\u3067mosh\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\uff0e<\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tbody>\n<tr>\n<td>\n<pre><code>$ mosh\nIO.c: loadable library and perl binaries are mismatched (got handshake key 0xed00080, needed 0xeb00080)<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><!--more--><\/p>\n<ul>\n<li>\n<a href=\"https:\/\/mosh.org\/\">Mosh: the mobile shell<\/a><\/li>\n<\/ul>\n<p>mosh-client\u306f\u52d5\u304f\u3051\u3069 <code>~\/.ssh\/config<\/code> \u3092\u898b\u3066\u304f\u308c\u306a\u3044\u306e\u3067\u9762\u5012<\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tbody>\n<tr>\n<td>\n<pre><code>$ mosh-client\nmosh-client (mosh 1.3.2) [build mosh 1.3.2]\nCopyright 2012 Keith Winstein &lt;mosh-devel@mit.edu&gt;\nLicense GPLv3+: GNU GPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;.\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\nUsage: mosh-client [-# 'ARGS'] IP PORT\n       mosh-client -c<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>mosh \u306f perl script<\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tbody>\n<tr>\n<td>\n<pre><code>$ file \/bin\/mosh\n\/bin\/mosh: Perl script text executable\n$ grep -v ^# \/bin\/mosh | head\n\n\nuse 5.8.8;\n\nuse warnings;\nuse strict;\nuse Getopt::Long;\nuse IO::Socket;\nuse Text::ParseWords;\nuse Socket qw(IPPROTO_TCP);<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>mosh-client \u306felf<\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tbody>\n<tr>\n<td>\n<pre><code>$ file \/bin\/mosh-client\n\/bin\/mosh-client: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU\/Linux), dynamically linked, interpreter \/lib64\/ld-linux-x86-64.so.2, BuildID[sha1]=9145424edb62c61b0081efeaa68ea20a25a73e5f, for GNU\/Linux 3.2.0, stripped<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>sid\u3060\u3057Perl\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3082\u3042\u3063\u305f\u306e\u3067\u305d\u306e\u305b\u3044\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u305f\u3051\u3069\u3057\u3070\u3089\u304f\u7d4c\u3063\u3066\u3082\u76f4\u3089\u306a\u3044\uff0e<\/p>\n<p>cpan\u3084cpanm\u3082\u52d5\u304b\u306a\u3044\uff0ecpan\u306f <code>~\/perl5<\/code> \u3092\u898b\u3066\u3044\u308b\uff0e<br \/>\n\u6700\u8fd1Debian sid\u306ePerl\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4e0a\u304c\u3063\u305f\u306e\u306b <code>~\/perl5<\/code> \u3092\u66f4\u65b0\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u4e0d\u6574\u5408\u3068\u306a\u3063\u3066\u3044\u305f\u3088\u3046\uff0e<br \/>\n\u4e00\u65e6 <code>~\/perl5<\/code> \u3092\u9000\u907f\u3057\u3066\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\uff0e<br \/>\n\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6642\u306a\u3069\u306b\u3082\u5d4c\u308a\u305d\u3046\uff0e<\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tbody>\n<tr>\n<td>\n<pre><code>$ cpanm --list\nIO.c: loadable library and perl binaries are mismatched (got handshake key 0xed00080, needed 0xeb00080)\n$ which cpan\n\/home\/matoken\/perl5\/bin\/cpan\n$ which cpan\n\/home\/matoken\/perl5\/bin\/cpan\n$ mosh\nUsage: \/usr\/bin\/mosh [options] [--] [user@]host [command...]\n        --client=PATH        mosh client on local machine\n                                (default: \"mosh-client\")\n        --server=COMMAND     mosh server on remote machine\n                                (default: \"mosh-server\")\n\n        --predict=adaptive      local echo for slower links [default]\n-a      --predict=always        use local echo even on fast links\n-n      --predict=never         never use local echo\n        --predict=experimental  aggressively echo even when incorrect\n\n-4      --family=inet        use IPv4 only\n-6      --family=inet6       use IPv6 only\n        --family=auto        autodetect network type for single-family hosts only\n        --family=all         try all network types\n        --family=prefer-inet use all network types, but try IPv4 first [default]\n        --family=prefer-inet6 use all network types, but try IPv6 first\n-p PORT[:PORT2]\n        --port=PORT[:PORT2]  server-side UDP port or range\n                                (No effect on server-side SSH port)\n        --bind-server={ssh|any|IP}  ask the server to reply from an IP address\n                                       (default: \"ssh\")\n\n        --ssh=COMMAND        ssh command to run when setting up session\n                                (example: \"ssh -p 2222\")\n                                (default: \"ssh\")\n\n        --no-ssh-pty         do not allocate a pseudo tty on ssh connection\n\n        --no-init            do not send terminal initialization string\n\n        --local              run mosh-server locally without using ssh\n\n        --experimental-remote-ip=(local|remote|proxy)  select the method for\n                             discovering the remote IP address to use for mosh\n                             (default: \"proxy\")\n\n        --help               this message\n        --version            version and copyright information\n\nPlease report bugs to mosh-devel@mit.edu.\nMosh home page: https:\/\/mosh.org<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><b>\u74b0\u5883<\/b><\/p>\n<table  class=\" table table-hover\" border=\"0\" bgcolor=\"#e8e8e8\" width=\"100%\" cellpadding=\"4\">\n<tbody>\n<tr>\n<td>\n<pre><code>$ dpkg-query -W mosh perl\nmosh    1.3.2-2.1+b3\nperl    5.34.0-3\n$ lsb_release -dr\nDescription:    Debian GNU\/Linux bookworm\/sid\nRelease:        unstable\n$ arch\nx86_64<\/code><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Debian sid amd64\u74b0\u5883\u3067mosh\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\uff0e $ mosh IO.c: loadable library and perl binaries are mismatched (got handshake [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,6,199],"tags":[213,53,341],"class_list":["post-3450","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-mosh","tag-perl","tag-ssh"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/3450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=3450"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/3450\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=3450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=3450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=3450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}