Mohammadreza Hadizadeh

Macbook: how to edit or delete the known_hosts file?

Open terminal and navigate to
/users/yourusername/.ssh/

to remove the known_hosts file
$ rm known_hosts


to edit the known_hosts file try one of following
$ nano known_hosts
$ vim known_hosts
$ vi known_hosts