Я хотел настроить вход без пароля с моей локальной машины на этот сервер Linux. Когда я попытался загрузить свой открытый ключ, я обнаружил, что на сервере нет .ssh. Поэтому я создал его с помощью ssh-keygen на сервере. Однако во вновь сгенерированном каталоге .ssh нет авторизованных_ключей или известных_хостов. Поэтому я создал новый author_keys и вставил свой открытый ключ с локальной машины. Однако это не работает, все еще нужен пароль для ssh. Может ли кто-нибудь сказать мне, правильно ли я делаю?
Вот вывод ssh -vvv:
debug1: Authentications that can continue: publickey,gssapi-with-mic,password,keyboard-interactive
debug3: start over, passed a different list publickey,gssapi-with-mic,password,keyboard-interactive
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug3: Trying to reverse map address .
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_198782' not found
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_198782' not found
debug1: Unspecified GSS failure. Minor code may provide more information
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_198782' not found
debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /rsrch2/rists/djiao/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug3: Wrote 368 bytes for a total of 1477
debug1: Authentications that can continue: publickey,gssapi-with-mic,password,keyboard-interactive
debug1: Trying private key: /rsrch2/rists/djiao/.ssh/id_dsa
debug3: no such identity: /rsrch2/rists/djiao/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug3: Wrote 96 bytes for a total of 1573
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
.ssh
должно быть 700,authorized_keys
в порядке. - person Jakuje   schedule 19.08.2015ls -Zd ~/.ssh
иls -Z ~/.ssh/authorized_keys
должны сказать вам - person Jakuje   schedule 19.08.2015drwx------ bdiuser infocust user_u:object_r:file_t /inform/flatfiles/bdiuser/.ssh
и-rw------- bdiuser infocust user_u:object_r:file_t /inform/flatfiles/bdiuser/.ssh/authorized_keys
- person Nasreddin   schedule 19.08.2015