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 1 year has passed since last update.

ssh設定

Posted at

#鍵の作成
ssh-keygen -t rsa
cd ~/.ssh/
mv id_rsa.pub authorized_keys
※id_rsaファイルをローカルにコピーする

#sshdのファイルの下記4つを編集する
・Port 22
・PermitRootLogin no
・PubkeyAuthentication yes
・AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2

vim /etc/ssh/sshd_config
image.png

#サービスを再起動
systemctl restart sshd

#ssh接続
ssh {ユーザー名}@{ホスト名} -i id_rsa

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?