AB Lab

プログラミング備忘録

SSH

SSH接続の公開鍵認証

参考サイト http://fnya.cocolog-nifty.com/blog/2012/03/centos-ssh-8291.html 秘密鍵と公開鍵を作成 ssh-keygen -t rsa 公開鍵を転送 scp id_rsa.pub user@hostname/.ssh 公開鍵を設定 mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys chmod 600 ~/.ssh/auth…