セキュリティー上、問題があるという話しもちらほら。 しかし、多くのサーバを管理する場合はできないと話しにならないノンパス設定。 何度やっても覚えないので、ちょっと覚書。 Server1からServer2に接続する場合。 oresamaというユーザーがServer1とServer2にいることにします。 Server1に鍵を作る まずは鍵を発行するコマンド $ ssh-keygen すると以下のようになる。 Generating public/private rsa key pair. Enter file in which to save the key (/home/oresama/.ssh/id_rsa):(鍵の保存場所) Enter passphrase (empty for no passphrase):(パスフレーズ) Enter same passphrase again: Yo
![『SSHのノンパス設定覚書』](https://cdn-ak-scissors.b.st-hatena.com/image/square/599602c4b9bf2358c75d9f444ed18c79b8fdfca8/height=288;version=1;width=512/https%3A%2F%2Fstat.profile.ameba.jp%2Fprofile_images%2F20180308%2F15%2Ffe%2FOa%2Fj%2Fo06400640p_1520491971168_8bqou.jpg)