cannot identify public key when ssh to a remote host

·

1 min read

create file 'config' in the folder ~/.ssh add the following to the file:

Host host_name
     IdentityFile /home/thuchoang/.ssh/name_of_private_key_file