V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
savingralf
V2EX  ›  Linux

使用ssh-copy-id拷贝key,有一台机器总是有问题,而且还有一些更诡异,root@ip变为了r@ip

  •  
  •   savingralf · 2013-06-16 14:57:14 +08:00 · 3181 次点击
    这是一个创建于 3966 天前的主题,其中的信息可能已经有所发展或是发生改变。
    ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
    /Users/ralf/.ssh/id_rsa.pub [email protected]'s password:

    明明是指定的用户名是root,而要求输入的用户名是r
    1 条回复    1970-01-01 08:00:00 +08:00
    vibbow
        1
    vibbow  
       2013-06-17 05:55:13 +08:00
    1. Bug? (概率很低)
    2. 把 -i 参数去掉 (反正你公钥也在默认位置)
    3. 自己手动复制一遍公钥 (反正ssh-copy-id本身也只是简化了这一步骤而已,没其他特殊的)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2824 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:32 · PVG 23:32 · LAX 08:32 · JFK 11:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.