9
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Homebrewでtelnetクライアントをインストールする方法

Last updated at Posted at 2019-04-15
  • 使っているOS : macOS Mojave バージョン10.14.4

(しなくてもいいけど)事前準備をする

# アップデートしておく
$ brew update
Updated 2 taps (homebrew/core and homebrew/cask).
# <省略>
$ brew -v
Homebrew 2.1.1
Homebrew/homebrew-core (git revision 754e96; last commit 2019-04-15)
Homebrew/homebrew-cask (git revision 9e056; last commit 2019-04-15)

# Homebrewが元気かお医者さんに聞いておく
$ brew doctor
Your system is ready to brew.

# インストールしちゃってないか確認する
$ brew list | grep telnet
$

(決まっていればしなくてもいいけど)インストールするものを確認しておく

# 探す
$ brew search telnet
==> Formulae
telnet                                   telnetd

# 情報を確認しておく
$ brew info telnet
telnet: stable 60 (bottled)
User interface to the TELNET protocol (built from macOS Sierra sources)
https://opensource.apple.com/
Conflicts with:
  inetutils (because both install 'telnet' binaries)
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/telnet.rb
==> Requirements
Build: xcode ✔
==> Analytics
install: 41,507 (30 days), 127,724 (90 days), 499,049 (365 days)
install_on_request: 41,442 (30 days), 127,426 (90 days), 498,028 (365 days)
build_error: 0 (30 days)

telnetをインストールする

brew cleanup を最近していなかったからかついでにやってくれた。

$ brew install telnet
==> Downloading https://homebrew.bintray.com/bottles/telnet-60.mojave.bottle.tar
######################################################################## 100.0%
==> Pouring telnet-60.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/telnet/60: 4 files, 138.2KB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/mana/Library/Caches/Homebrew/apr--1.6.5.mojave.bottle.tar.gz... (391.6KB)
# 省略
Pruned 0 symbolic links and 8 directories from /usr/local

確認してみる

$ which telnet
/usr/local/bin/telnet

# Gmailをしてみる
$ telnet smtp.gmail.com 25
Trying 2404:6800:4008:c03::6d...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 smtp.gmail.com ESMTP g5sm33686403pfo.53 - gsmtp
HELO hoge
250 smtp.gmail.com at your service
STARTTLS
220 2.0.0 Ready to start TLS
Connection closed by foreign host.
# Gmailは平文を送れません->telnetは平文しか送れません->telnetでGmailはできません。
9
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?