Opensourcetechブログ

OpensourcetechによるNGINX/Kubernetes/Zabbix/Neo4j/Linuxなどオープンソース技術に関するブログです。

Mac High Sierra(10.13以降)のターミナルでtelnetやftpを復活させる方法

 

こんにちは、鯨井貴博@opensourcetechです。

 

 Mac High Sierra(10.13以降)のターミナルでは、

telnetやftpが廃止され、sshやscpを推奨されるようになりました。

support.apple.com

 

bash-3.2$ telnet
bash: telnet: command not found・・・確かにない!!
bash-3.2$ ftp
bash: ftp: command not found・・・確かにない!!

 

 

しかし、既存環境にあるConsoleサーバやその他ssh未対応のサーバなどの為に、

telnetやftpを使いたいケースはあるかと思います。

 

なので、そういう方々の為の記事です。

 

 

 

事前準備(Homebrew)

Homebrewを使いますので、

入っていない方は以下の記事を見ながら環境を用意してください。

opensourcetech.hatenablog.jp

 

telnet/ftpの復活方法

bash-3.2$ brew install inetutils・・・inetutilsパッケージをインストール
Updating Homebrew...
==> Auto-updated Homebrew!

Updated 1 tap (homebrew/core).
==> New Formulae
bat eccodes fork-cleaner pgweb wireguard-go
==> Updated Formulae
ace imagemagick@6 pegtl
acpica imapsync perkeep
akamai inetutils petsc
angular-cli ipfs pgpdump
annie ipython pgroonga
apibuilder-cli ipython@5 pianobar
aptly iso-codes pianod
armadillo jabba pidgin
asciidoctor jboss-forge pipenv
avimetaedit jemalloc pod2man
awscli jenkins poppler
azure-cli jenkins-lts postgis
babeld jhiccup postgresql
bartycrouch jhipster postgresql@9.4
bettercap joplin postgresql@9.5
bit json-c postgresql@9.6
bitrise just postgrest
bluepill knot pound
byacc kompose presto
caddy konoha proguard
cargo-completion kube-aws proxytunnel
cask kubeless pulseaudio
cfitsio kubernetes-cli pyinvoke
cfssl kubernetes-helm qbs
chakra landscaper qcachegrind
chamber libbi quicktype
citus libfabric rabbitmq
clojure libgphoto2 rabbitmq-c
closure-compiler libidn raine
cocoapods liblwgeom rakudo-star
conan libmypaint raylib
consul libpq rebar@3
convox libpqxx remarshal
dartsim libqalculate reminiscence
dash libraw rhino
dcd libsoup riemann-client
diamond libswiften rocksdb
direnv libu2f-host rsyslog
dnscrypt-proxy libu2f-server rust
docker libuv s-nail
docker-completion links sbt
doitlive lmod schismtracker
dscanner loudmouth shogun
dxpy lxc siril
elektra lz4 skafos
elixir mariadb@10.1 skipfish
emscripten maxwell sleuthkit
erlang mcabber snakemake
erlang@19 media-info snownews
etcd mercurial solr
ethereum metabase source-to-image
faas-cli micropython spigot
fabric mikutter spring-roo
fastd miniupnpc streamlink
feh mlt stubby
flow mongodb@3.2 sundials
fluent-bit mpc synfig
fn mpfi telegraf
folly mpw teleport
freediameter msgpack texmath
frugal n tile38
fstrm nano tippecanoe
gandi.cli ndpi tmuxinator-completion
gauge neomutt todoman
gdal newsboat tracebox
gegl nghttp2 traefik
get_iplayer node ttyd
getdns node-build u-boot-tools
git-annex node@8 unrar
git-ftp nsd vagrant-completion
gjs ntopng vtk
gnumeric odpi webpack
goenv open-mpi winetricks
goffice osm2pgrouting wireguard-tools
grafana osquery wtf
groovy osrm-backend xsv
grpc pam-u2f yaf
gtksourceview@4 pandoc ykman
gx paps ykpers
gx-go passenger youtube-dl
heroku pcb yq
hesiod pdal zabbix
hopenpgp-tools pdfpc zanata-client
hugo pdns zmap
imagemagick pdsh
==> Deleted Formulae
bokken

Error: Failed to link all completions, docs and manpages:
Permission denied @ rb_file_s_symlink - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew)
==> Installing dependencies for inetutils: libidn
==> Installing inetutils dependency: libidn
==> Downloading https://homebrew.bintray.com/bottles/libidn-1.35.high_sierra.bot
######################################################################## 100.0%
==> Pouring libidn-1.35.high_sierra.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/libidn
==> Summary
🍺 /usr/local/Cellar/libidn/1.35: 72 files, 1.4MB
==> Installing inetutils
==> Downloading https://homebrew.bintray.com/bottles/inetutils-1.9.4_1.high_sier
######################################################################## 100.0%
==> Pouring inetutils-1.9.4_1.high_sierra.bottle.tar.gz
==> Caveats
The following commands have been installed with the prefix 'g'.

dnsdomainname
ftp
rcp
rexec
rlogin
rsh
telnet

If you really need to use these commands with their normal names, you
can add a "gnubin" directory to your PATH from your bashrc like:

PATH="/usr/local/opt/inetutils/libexec/gnubin:$PATH"

Additionally, you can access their man pages with normal names if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="/usr/local/opt/inetutils/libexec/gnuman:$MANPATH"
==> Summary
🍺 /usr/local/Cellar/inetutils/1.9.4_1: 107 files, 2.6MB
bash-3.2$

bash-3.2$ telnet・・・telnetの復活!!
telnet> quit
bash-3.2$ ftp・・・ftpの復活!!
ftp> bye
bash-3.2$

 

 

 

www.slideshare.net

github.com

www.facebook.com

twitter.com

www.instagram.com

 

 

にほんブログ村 IT技術ブログ Linuxへ
Linux

にほんブログ村 IT技術ブログ オープンソースへ
オープンソース

 

Opensourcetech by Takahiro Kujirai