Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux (bash): how to list available SSH authentication methods for local host?

Tags:

linux

ssh

Is there a way to list all available SSH authentication methods for the local host using command line? Basically, I want to see the same list which the server would announce when trying to connect from a (remote) client.

Note: I do not want to search through /etc/ssh/sshd_config, as this will require too much understanding of which authentication methods do in general exist (e.g. sshd_config may just be emtpy)

like image 998
mstrap Avatar asked Oct 18 '13 08:10

mstrap


Video Answer


1 Answers

ssh -v server and look for the first "Authentications that can continue" line.

like image 147
William Hay Avatar answered Sep 30 '22 13:09

William Hay