4
5

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-copy-idで公開鍵設置

Last updated at Posted at 2015-03-17

ssh-copy-idでさくっと公開鍵を設置

MacOS Xの場合

$ brew install ssh-copy-id

鍵ペア作成

$ ssh-keygen -t rsa

接続先ホストへの公開鍵設置

$ ssh-copy-id -i ~/.ssh/id_rsa.pub <username>@<hostname>

ログイン

$ ssh <username>@<hostname>
4
5
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
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?