{"id":89293,"date":"2024-02-20T01:39:11","date_gmt":"2024-02-19T17:39:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=89293"},"modified":"2024-02-20T01:39:11","modified_gmt":"2024-02-19T17:39:11","slug":"quickly-share-tmate","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/quickly-share-tmate.html","title":{"rendered":"\u5feb\u901f\u7ec8\u7aef\u4f1a\u8bdd\u5206\u4eab\u5de5\u5177:tmate"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u4e0d\u4e45\u524d\uff0c\u6211\u4eec\u5199\u8fc7\u4e00\u7bc7\u5173\u4e8e teleconsole \u7684\u4ecb\u7ecd\uff0c\u8be5\u5de5\u5177\u53ef\u7528\u4e8e\u5feb\u901f\u5206\u4eab\u7ec8\u7aef\u7ed9\u4efb\u4f55\u4eba\uff08\u4efb\u4f55\u4f60\u4fe1\u4efb\u7684\u4eba\uff09\u3002\u4eca\u5929\u6211\u4eec\u8981\u804a\u4e00\u804a\u53e6\u4e00\u6b3e\u7c7b\u4f3c\u7684\u5e94\u7528\uff0c\u540d\u53eb tmate\u3002tmate \u6709\u4ec0\u4e48\u7528\uff1f\u5b83\u53ef\u4ee5\u8ba9\u4f60\u5728\u9700\u8981\u5e2e\u52a9\u65f6\u5411\u4f60\u7684\u670b\u53cb\u4eec\u6c42\u52a9\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4ec0\u4e48\u662f tmate\uff1f<\/strong><\/div>\n tmate \u7684\u610f\u601d\u662f teammates\uff0c\u5b83\u662f tmux \u7684\u4e00\u4e2a\u5206\u652f\uff0c\u5e76\u4e14\u4f7f\u7528\u76f8\u540c\u7684\u914d\u7f6e\u4fe1\u606f\uff08\u4f8b\u5982\u5feb\u6377\u952e\u914d\u7f6e\uff0c\u914d\u8272\u65b9\u6848\u7b49\uff09\u3002\u5b83\u662f\u4e00\u4e2a\u7ec8\u7aef\u591a\u8def\u590d\u7528\u5668\uff0c\u540c\u65f6\u5177\u6709\u5373\u65f6\u5206\u4eab\u7ec8\u7aef\u7684\u80fd\u529b\u3002\u5b83\u5141\u8bb8\u5728\u5355\u4e2a\u5c4f\u5e55\u4e2d\u521b\u5efa\u5e76\u64cd\u63a7\u591a\u4e2a\u7ec8\u7aef\uff0c\u540c\u65f6\u8fd9\u4e9b\u7ec8\u7aef\u8fd8\u80fd\u4e0e\u5176\u4ed6\u540c\u4e8b\u5206\u4eab\u3002<\/p>\n \u4f60\u53ef\u4ee5\u5206\u79bb\u4f1a\u8bdd\uff0c\u8ba9\u4f5c\u4e1a\u5728\u540e\u53f0\u8fd0\u884c\uff0c\u7136\u540e\u5728\u60f3\u8981\u67e5\u770b\u72b6\u6001\u65f6\u91cd\u65b0\u8fde\u63a5\u4f1a\u8bdd\u3002tmate \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5373\u65f6\u914d\u5bf9\u7684\u65b9\u6848\uff0c\u8ba9\u4f60\u53ef\u4ee5\u4e0e\u4e00\u4e2a\u6216\u591a\u4e2a\u961f\u53cb\u5171\u4eab\u4e00\u4e2a\u7ec8\u7aef\u3002<\/p>\n \u5728\u5c4f\u5e55\u7684\u5730\u6b65\u6709\u4e00\u4e2a\u72b6\u6001\u680f\uff0c\u663e\u793a\u4e86\u5f53\u524d\u4f1a\u8bdd\u7684\u4e00\u4e9b\u8bf8\u5982 ssh \u547d\u4ee4\u4e4b\u7c7b\u7684\u5171\u4eab\u4fe1\u606f\u3002<\/p>\n tmate \u662f\u600e\u4e48\u5de5\u4f5c\u7684\uff1f<\/strong><\/div>\n \u8fd0\u884c tmate \u65f6\uff0c\u4f1a\u901a\u8fc7 libssh \u5728\u540e\u53f0\u521b\u5efa\u4e00\u4e2a\u8fde\u63a5\u5230 tmate.io \uff08\u7531 tmate \u5f00\u53d1\u8005\u7ef4\u62a4\u7684\u540e\u53f0\u670d\u52a1\u5668\uff09\u7684 ssh \u8fde\u63a5\u3002 \u4f7f\u7528 tmate \u7684\u5fc5\u5907\u6761\u4ef6<\/strong><\/div>\n \u7531\u4e8e tmate.io \u670d\u52a1\u5668\u9700\u8981\u901a\u8fc7\u672c\u5730 ssh \u5bc6\u94a5\u6765\u8ba4\u8bc1\u5ba2\u6237\u673a\uff0c\u56e0\u6b64\u5176\u4e2d\u4e00\u4e2a\u5fc5\u5907\u6761\u4ef6\u5c31\u662f\u751f\u6210 SSH \u5bc6\u94a5 key\u3002 \u8bb0\u4f4f\uff0c\u6bcf\u4e2a\u7cfb\u7edf\u90fd\u8981\u6709\u81ea\u5df1\u7684 SSH \u5bc6\u94a5\u3002<\/p>\n $ ssh-keygen -t rsa\r\nGenerating public\/private rsa key pair.\r\nEnter file in which to save the key (\/home\/magi\/.ssh\/id_rsa): \r\nEnter passphrase (empty for no passphrase): \r\nEnter same passphrase again: \r\nYour identification has been saved in \/home\/magi\/.ssh\/id_rsa.\r\nYour public key has been saved in \/home\/magi\/.ssh\/id_rsa.pub.\r\nThe key fingerprint is:\r\nSHA256:3ima5FuwKbWyyyNrlR\/DeBucoyRfdOtlUmb5D214NC8 magi@magi-VirtualBox\r\nThe key's randomart image is:\r\n+---[RSA 2048]----+\r\n| |\r\n| |\r\n| . |\r\n| . . = o |\r\n| *ooS= . + o |\r\n| . =.@*o.o.+ E .|\r\n| =o==B++o = . |\r\n| o.+*o+.. . |\r\n| ..o+o=. |\r\n+----[SHA256]-----+\r\n<\/pre>\n |