9
9

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.

複数人で利用しているサーバ管理用のアカウントの authorized_keys に、新しい公開鍵を追加するときに、サーバが複数あると手作業で入れていくのが時間がかかってしまってつらいです。

Last updated at Posted at 2012-03-16

以下のようなのを複数サーバに向けて走らせると良いと思うのですが、どうもスマートではない気がします。
皆さんはどのようにして自動化されているのでしょうか。

cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
9
9
1

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
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?