美文网首页
Mac xshell 与 xftp

Mac xshell 与 xftp

作者: 淡意的温柔丶 | 来源:发表于2019-12-26 13:48 被阅读0次

    终端 (terminal) 连接服务器

      sudo -i      获取超级用户权限 
      ssh root@服务器公网IP   
    

    文件上传:

    • 终端(terminal) Shell
    • FileZilla (可视化) 提取码: yqm6
    Shell
    FileZilla

    云服务器重置问题:
    RSA host key for [ip address] has changed and you have requested strict checking


    EFF6792A-2341-4076-9856-02917F4FF13C.png

    原因:云服务器重装后,本地与服务器ssh无法配对
    解决: 删除本地ssh缓存信息

    sss-keygen -R xxx.xx.xx.xx.
    

    以上解决了terminal解决连接问题,shell连接还是存在同样的问题。

    手动删除
    /Users/xx/.ssh/known_hosts.old , /Users/xx/.ssh/known_hosts


    注:
    我的known_hosts中只有这一个密钥,所以我直接删除了。有多个的情况,以文本是形式打开,找到 重置服务器 的密钥并删除。

    相关文章

      网友评论

          本文标题:Mac xshell 与 xftp

          本文链接:https://www.haomeiwen.com/subject/gklkoctx.html