<mohammadrony>

SSH Client Config

Common config

Prefer password authentication

sudo vi /etc/ssh/ssh_config
PreferredAuthentications password,publickey

User config

Set ssh file for host

vi ~/.ssh/config
Host example.com
  Hostname example.com
  User root
  IdentityFile ~/.ssh/id_rsa
  IdentitiesOnly yes
  AddKeysToAgent yes