{"id":150,"date":"2022-06-26T10:36:35","date_gmt":"2022-06-26T01:36:35","guid":{"rendered":"https:\/\/th0x0472.net\/?p=150"},"modified":"2022-07-12T07:31:07","modified_gmt":"2022-07-11T22:31:07","slug":"ftp%e3%81%a8telnet","status":"publish","type":"post","link":"https:\/\/th0x0472.net\/index.php\/2022\/06\/26\/150\/","title":{"rendered":"ftp\u3068telnet"},"content":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306fEC2\u306eUbuntu22.04\u3067\u69cb\u7bc9\u904b\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3075\u3068\u601d\u3044\u7acb\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u3092\u898b\u305f\u3089\u3001\u3044\u308b\u3093\u3067\u3059\u3088\u30fb\u30fb\u30fbftp\u3068telnet\u304c\u3002<!--more--><\/p>\n<p>\u307e\u305a\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u843d\u3068\u3057\u307e\u3059\u3002lib\u306a\u3093\u3068\u304b\u306f\u9664\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ apt list --installed | grep -v ^lib | sort &gt; apt-installed<\/code><\/pre>\n<\/div>\n<p>\u305d\u3057\u3066\u773a\u3081\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb\u3044\u308b\u3093\u3067\u3059\u3088\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ egrep '^(ftp|telnet)' apt-installed\r\nftp\/jammy,now 20210827-4build1 all [installed]\r\ntelnet\/jammy,now 0.17-44build1 amd64 [installed]\r\n<\/code><\/pre>\n<\/div>\n<p>\u5fc5\u8981\u304b\uff1f\u4eca\u306e\u6642\u4ee3\uff1f\u3044\u3084\u3001\u30d6\u30ed\u30b0\u904b\u7528\u3057\u3066\u3044\u308b\u3060\u3051\u306e\u30db\u30b9\u30c8\u306b\u8981\u3089\u306a\u3044\u3060\u308d\u3002\u307e\u3042\u5ff5\u306e\u305f\u3081\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u3082\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ apt info ftp 2&gt;\/dev\/null | grep ^Desc\r\nDescription: dummy transitional package for tnftp<\/code><\/pre>\n<\/div>\n<p>ftp\u306f\u5b9f\u4f53\u306ftnftp\u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3089\u3057\u3044\u3002\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u3063\u3066\u3082\u305d\u3093\u306a\u611f\u3058<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ ls -l $(which ftp)\r\nlrwxrwxrwx 1 root root 21 Apr 21 23:07 \/usr\/bin\/ftp -&gt; \/etc\/alternatives\/ftp\r\n$ ls -l \/etc\/alternatives\/ftp\r\nlrwxrwxrwx 1 root root 14 Apr 21 23:07 \/etc\/alternatives\/ftp -&gt; \/usr\/bin\/tnftp\r\n$ ls -l \/usr\/bin\/tnftp\r\n-rwxr-xr-x 1 root root 183192 Mar 25 19:01 \/usr\/bin\/tnftp<\/code><\/pre>\n<\/div>\n<p>tnftp\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u3082\u898b\u3066\u307f\u307e\u3059\u304c\u3001\u3084\u3063\u3071\u308aftp\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3060\u305d\u3046\u3067\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ apt info tnftp 2&gt;\/dev\/null | grep -A5 ^Desc\r\nDescription: enhanced ftp client\r\ntnftp is what many users affectionately call the enhanced ftp\r\nclient in NetBSD (http:\/\/www.netbsd.org).\r\n.\r\nThis package is a `port' of the NetBSD ftp client to other systems.<\/code><\/pre>\n<\/div>\n<p>\u3054\u9000\u5834\u9858\u304a\u3046\u3002\u3082\u3046\u4e00\u65b9\u306etelnet\u3082\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ apt info telnet 2&gt;\/dev\/null | grep -A5 ^Desc\r\nDescription: basic telnet client\r\nThe telnet command is used for interactive communication with another host\r\nusing the TELNET protocol.\r\n.\r\nFor the purpose of remote login, the present client executable should be\r\ndepreciated in favour of an ssh-client, or in some cases with variants like\r\n<\/code><\/pre>\n<\/div>\n<p>\u3053\u3061\u3089\u306f\u6614\u306a\u304c\u3089\u306etelnet\u3089\u3057\u3044\u3002\u4e00\u5fdc\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u4f53\u3082\u8ffd\u3044\u304b\u3051\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ ls -l $(which telnet)\r\nlrwxrwxrwx 1 root root 24 Apr 21 23:07 \/usr\/bin\/telnet -&gt; \/etc\/alternatives\/telnet\r\n$ ls -l \/etc\/alternatives\/telnet\r\nlrwxrwxrwx 1 root root 22 Apr 21 23:07 \/etc\/alternatives\/telnet -&gt; \/usr\/bin\/telnet.netkit\r\n$ ls -l \/usr\/bin\/telnet.netkit\r\n-rwxr-xr-x 1 root root 110144 Mar 25 01:20 \/usr\/bin\/telnet.netkit\r\n$ dpkg -S \/usr\/bin\/telnet.netkit\r\ntelnet: \/usr\/bin\/telnet.netkit\r\n<\/code><\/pre>\n<\/div>\n<p>\u306a\u3093\u304b\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u4f53\u306ftelnet.netkit\u3060\u305d\u3046\u3060\u3051\u3069\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3084\u3063\u3071\u308atelnet\u3060\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u3054\u9000\u5834\u9858\u3044\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>$ sudo apt -y remove ftp telnet tnftp\r\nReading package lists... Done\r\nBuilding dependency tree... Done\r\nReading state information... Done\r\nThe following packages were automatically installed and are no longer required:\r\nlinux-aws-headers-5.15.0-1008 linux-headers-5.15.0-1008-aws linux-image-5.15.0-1008-aws\r\nlinux-modules-5.15.0-1008-aws\r\nUse 'sudo apt autoremove' to remove them.\r\nThe following packages will be REMOVED:\r\nftp telnet tnftp\r\n0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.\r\nAfter this operation, 421 kB disk space will be freed.\r\n(Reading database ... 171728 files and directories currently installed.)\r\nRemoving ftp (20210827-4build1) ...\r\nRemoving telnet (0.17-44build1) ...\r\nRemoving tnftp (20210827-4build1) ...\r\nProcessing triggers for man-db (2.10.2-1) ...<\/code><\/pre>\n<\/div>\n<p>\u4ed6\u306b\u3082\u3001Thunderbolt\u95a2\u9023\u3068\u304b\u3001USB\u95a2\u9023\u3068\u304b\u3001\u5fc5\u8981\uff1f\uff1f\uff1f\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u3044\u308b\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u8abf\u3079\u305f\u3089<a href=\"https:\/\/aws.amazon.com\/marketplace\/pp\/prodview-o5bowpuwmx3ng\" target=\"_blank\" rel=\"noopener\">Minimal Ubuntu 22.04 LTS &#8211; Jammy<\/a>\u3068\u3044\u3046AMI\u3082\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u305d\u3063\u3061\u306b\u4e57\u308a\u63db\u3048\u3088\u3046\u304b\u306a\u30fb\u30fb\u30fb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30d6\u30ed\u30b0\u306fEC2\u306eUbuntu22.04\u3067\u69cb\u7bc9\u904b\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3075\u3068\u601d\u3044\u7acb\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u3092\u898b\u305f\u3089\u3001\u3044\u308b\u3093\u3067\u3059\u3088\u30fb\u30fb\u30fbftp\u3068telnet\u304c\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,4,10],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-aws","category-linux","category-10"],"_links":{"self":[{"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/posts\/150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/comments?post=150"}],"version-history":[{"count":4,"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/posts\/150\/revisions\/154"}],"wp:attachment":[{"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/media?parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/categories?post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/th0x0472.net\/index.php\/wp-json\/wp\/v2\/tags?post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}