Jump to content
funtoo forums
  • 0
walkerxk1

the second login need password

Question

i first login to the server without password, after the network broken, i login to the server again in the same panel in tmux. it ask for a password:

10:28:06#walkerxk@ubuntu1/~> ssh log date
Enter passphrase for key '/home/walkerxk/.ssh/id_rsa_2':
Wed Nov  7 02:28:15 UTC 2018
10:28:15#walkerxk@ubuntu1/~>

i open another panel  in tmux and login to the server, i don't ask for a password

10:28:09#walkerxk@ubuntu1/~> ssh log date
Wed Nov  7 02:28:13 UTC 2018
10:28:14#walkerxk@ubuntu1/~>

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

.ssh/config as follows:

host log
        hostname 23.251.96.137
host *
        user walker.xia
        ServerAliveInterval 30
        GSSAPIAuthentication no
        ForwardAgent yes
        TCPKeepAlive no

the debug info for the bad situation:

debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:ZfKfGXBW0BmGPoRg8rgpmSOgyHD9UZEpcpzhMdjUim0 /home/walkerxk/.ssh/id_rsa_2
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 535
debug2: input_userauth_pk_ok: fp SHA256:ZfKfGXBW0BmGPoRg8rgpmSOgyHD9UZEpcpzhMdjUim0
debug3: sign_and_send_pubkey: RSA SHA256:ZfKfGXBW0BmGPoRg8rgpmSOgyHD9UZEpcpzhMdjUim0
Enter passphrase for key '/home/walkerxk/.ssh/id_rsa_2':

the debug info for the good situation:

debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:ZfKfGXBW0BmGPoRg8rgpmSOgyHD9UZEpcpzhMdjUim0 /home/walkerxk/.ssh/id_rsa_2
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 535
debug2: input_userauth_pk_ok: fp SHA256:ZfKfGXBW0BmGPoRg8rgpmSOgyHD9UZEpcpzhMdjUim0
debug3: sign_and_send_pubkey: RSA SHA256:ZfKfGXBW0BmGPoRg8rgpmSOgyHD9UZEpcpzhMdjUim0
debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to 23.251.96.137 ([23.251.96.137]:22).
debug1: channel 0: new [client-session]

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...