# ssh容器时报错
Failed to add the host to the list of known hosts (/home/drewverlee/.ssh/known_hosts).
Permission denied (publickey).
你的~/.ssh文件夹的所有者很可能是root非你的当前sudo用户。
登录root把.ssh删了,重新登sudo用户,新建.ssh并进行配置。
# ssh容器时报错
Failed to add the host to the list of known hosts (/home/drewverlee/.ssh/known_hosts).
Permission denied (publickey).
你的~/.ssh文件夹的所有者很可能是root非你的当前sudo用户。
登录root把.ssh删了,重新登sudo用户,新建.ssh并进行配置。