Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 0

the second login need password


walkerxk1

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/~>
Link to comment
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]

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...