LoginSignup
3

More than 5 years have passed since last update.

SSHの設定いろいろ

Last updated at Posted at 2015-02-17

設定について

ssh_config (sshの接続)

GSSAPI 認証

ssh -v <hostname> で詳細なログを出した時に、

debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
Cannot determine realm for numeric host address

こんなものが出ることがある。
"GSS failure" つまり失敗している。

GSSAPI 認証とは何か…は調べきれていないが、
使わないのであれば切ってしまったほうが良いだろう。

/etc/ssh/ssh_config
Host *
       GSSAPIAuthentication yes ← 削除(デフォルトに戻す)

service sshd restart で反映。

sshd_config (sshの接続)

パスワード認証

公開鍵認証しか使わないのであれば(以下略

/etc/ssh/sshd_config
PasswordAuthentication yes
↓
PasswordAuthentication no

service sshd restart で反映。

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
3