Optimize the priority of the ssh authentication methods
Closed this issue · 0 comments
windvalley commented
Now, there are three authentication methods: password
, pubkey
, ssh-agent
.
If the 3 auth methods are all valid, the current priority order is password
> pubkey
> ssh-agent
.
But I think a more reasonable order should be: ssh-agent
> pubkey
> password
. The next gossh
version will adjust the order to this.
Tips:
You can observe the actual authentication method used from the /var/log/secure
file of the target host.
tail -f /var/log/secure