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でminiとasuraに接続

Posted at

#授業で行ったことをメモ

##1.公開鍵と秘密鍵を作成

・cd .ssh (サーバーに接続)
・cat id_rsa.pub (公開鍵作成)

をターミナルで打つと、公開鍵が作成されるのでrsa ~を保存しておく。

##2.miniへ接続

・ssh アカウント名@192.218.172.38
・パスワード入力
・ssh-keygen (キーペア作成)
・enter 3回
・cd .ssh

emacsでauthorized_keysを開き、コピーした公開鍵を貼り付ける。

・cat id_rsa.pub

この公開鍵も、1と同じ様に保存しておく。

##3.asura0に接続

・ssh アカウント名@asura0
・パスワード入力
・ssh-keygen
・cd .ssh

emacsでauthorized_keysを開き、1と2でコピーした公開鍵を貼り付け。

・cat id_rsa.pub

1.2と同様にコピー

##GitHub

・GitHubのアカウントへログイン
・Settings
・SSH and GPG keys
・New SSH key
・Titleはasura0
・Keyに1.2.2でコピーしたsshを貼り付け.

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?