LoginSignup
7
7

More than 5 years have passed since last update.

ssh-copy-id: SSHでの公開鍵認証の設定を簡単に行う

Posted at

概要

  • サーバにログインするときパスワード毎回入力するの面倒
  • 公開鍵の設定もなんかメンドクサイ
  • 設定まで全部やってくれるssh-copy-idは神

ssh-copy-id

SSHで認証する公開鍵のコピーからパーミッション設定まで全部をまとめてやってくれるコマンドです。
パーミッション設定とかしょっちゅう忘れるので、これでやっておけば安心確実です。

使い方

#macだと入ってないので入れましょう
brew install ssh-copy-id

ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub user@address

超簡単(`・∀・´≡`・∀・´)

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