Centos 7はSSHを通じて鍵を使って秘密フリーログインを実現する.
968 ワード
SSHはパスワードなしでログインします
ssh local hostを使ってローカル~/.sshファイルディレクトリを取得します.
vi/etc/ssh/sshd_config
許可root認証登録
Permit Root Login yes
ハ許可鍵認証
RSAAuthentication yes
Pbkey Authentication yes
嗳デフォルトの公開鍵の保管場所
Authorzed KeysFile .ssh/authorized_keys
service sshd resttart
パスワードが必要な場合は、アクセス先ディレクトリが存在するかどうかを確認し、権限は700です.
ssh local hostを使ってローカル~/.sshファイルディレクトリを取得します.
ssh-keygen -t rsa ~/.ssh/id_rsa ~/.ssh/id_rsa.pub
ssh-copy-id username@remote-server SSH Linux
chmod 700 ~/.ssh/
chmod 600~/.ssh/authorized_keysvi/etc/ssh/sshd_config
許可root認証登録
Permit Root Login yes
ハ許可鍵認証
RSAAuthentication yes
Pbkey Authentication yes
嗳デフォルトの公開鍵の保管場所
Authorzed KeysFile .ssh/authorized_keys
service sshd resttart
パスワードが必要な場合は、アクセス先ディレクトリが存在するかどうかを確認し、権限は700です.