- command-line arguments
- user's configuration file ~/.ssh/config
- /etc/ssh/ssh_config
Host chartserver
HostName 12.34.56.78
PreferredAuthentications=publickey,hostbased,keyboard-interactive,password
Host setting can be an alias
Hostname can be DNS or IP address
PreferredAuthentications, change the default order to the order you prefer, in my case I wanted to use publickey as the first method as that would be the method I would be using. Now whenever I connect to the server the publickey authentication method will be the first that SSH attempts.
PreferredAuthentications, change the default order to the order you prefer, in my case I wanted to use publickey as the first method as that would be the method I would be using. Now whenever I connect to the server the publickey authentication method will be the first that SSH attempts.