6
6

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.

簡単ターミナルSSHする方法

Last updated at Posted at 2015-01-22

ターミナルから簡単にSSHログインする方法

1. SSHのコンフィグファイルを開く

例:Macの場合
$ vi ~/.ssh/config

2. 設定の記述を追加

./.ssh/config
Host example               <- 名前
  HostName example.com     <- 接続ホスト名
  Port 443                 <- ポート番号
  User myname              <- ログインユーザー名
  IdentityFile ~/.ssh/key  <- 秘密鍵

※不要な項目は書かないでOK

3. ターミナルからログイン

今まではこのように書いていたのが
$ ssh myname@example.com -p 443 ...
こう省略できる。
$ ssh example

6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?