14
13

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をmacで使う方法

Last updated at Posted at 2014-04-18

ssh-copy-id:自身の公開鍵を指定ホストに登録

Linuxでよく使ったてたのでMacでも使いたくなった。

適当なLinuxサーバーに入ってシェルスクリプトをコピーする。

$ ssh user@host
$ which ssh-copy-id
$ cat シェルスクリプトパス

Macの/usr/local/bin/に同じシェルスクリプト作成。

$ vi /usr/loca/bin/ssh-copy-id
$ さっきコピーしたものを貼付け
14
13
2

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
14
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?