how to ssh to a server without password when there is no .ssh on it -


i wanted setup passwordless login local machine linux server. when tried upload public key found there no .ssh on server. created 1 ssh-keygen on server. in newly generated .ssh directory, there no authorized_keys or known_hosts. made new authorized_keys , pasted public key local machine. not work, still need password ssh. can tell me if doing right?

here output of ssh -vvv:

debug1: authentications can continue: publickey,gssapi-with-mic,password,keyboard-interactive debug3: start over, passed 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 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: did not send 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: sent publickey packet, wait reply debug3: wrote 368 bytes total of 1477 debug1: authentications 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: did not send 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: sent keyboard-interactive packet, wait reply debug3: wrote 96 bytes total of 1573 debug2: input_userauth_info_req debug2: input_userauth_info_req: num_prompts 1 

simply create , copy key on it. if have key-copy tool create file via

$ touch ~/.ssh/authorized_keys 

before using tool.

it might connect using -vvv verbosity.

on client , on server, check ~/.ssh has permissions 700.

on server, check /etc/ssh/sshd_config has:

authorizedkeysfile  .ssh/authorized_keys pubkeyauthentication yes rsaauthentication yes 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -