0
0

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 3 years have passed since last update.

ssh接続するための準備 公開鍵 秘密鍵

Last updated at Posted at 2020-12-01

必要な手順

クライアント側

  • 公開鍵と秘密鍵の作成

リモート側

  • クライアントから指定してくるユーザの**~/.ssh/authorized_keysに、ssh接続するユーザの公開鍵を登録**
  • devサーバのsampleユーザからprdサーバのrootユーザでsshする場合、sampleユーザの公開鍵をrootユーザのauthorized_keysに登録

両方にやること

  • 適切なパーミッションの設定
  • 適切な所有者、グループの設定

あいまいな点
・~/.ssh/known_hostsの設定
・~/.ssh/configの設定

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?