ssh: The authenticity of host 'hostname' can't be established

前端 未结 16 1161
时光取名叫无心
时光取名叫无心 2020-12-04 05:04

When i ssh to a machine, sometime i get this error warning and it prompts to say \"yes\" or \"no\". This cause some trouble when running from scripts that automatically ssh

16条回答
  •  天涯浪人
    2020-12-04 05:39

    I had the same error and wanted to draw attention to the fact that - as it just happened to me - you might just have wrong privileges.
    You've set up your .ssh directory as either regular or root user and thus you need to be the correct user. When this error appeared, I was root but I configured .ssh as regular user. Exiting root fixed it.

提交回复
热议问题