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?

ssh Tips

Posted at

ssh接続手順

  1. クライアントPCとサーバPCにsshインストール(sshクライアントとsshd)
    sudo apt update
    sudo apt install -y ssh
    
  2. クライアントからサーバへssh接続できるか確認
    ssh <username>@<ipaddr>
    
  3. 鍵設定
    1. クライアントで鍵生成
      ssh-keygen -t rsa -b 4096
      
    2. クライアントからサーバへ公開鍵をコピー
      ssh-copy-id -i ~/.ssh/id_rsa.pub <username>@<ipaddr>
      
  4. クライアントからサーバへパスワード無しでssh接続できるか確認
    ssh <username>@<ipaddr>
    
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?