Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
savingralf
V2EX  ›  Linux

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

  •  
  •   savingralf · Jun 16, 2013 · 4043 views
    This topic created in 4726 days ago, the information mentioned may be changed or developed.
    ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
    /Users/ralf/.ssh/id_rsa.pub [email protected]'s password:

    明明是指定的用户名是root,而要求输入的用户名是r
    1 replies    1970-01-01 08:00:00 +08:00
    vibbow
        1
    vibbow  
       Jun 17, 2013
    1. Bug? (概率很低)
    2. 把 -i 参数去掉 (反正你公钥也在默认位置)
    3. 自己手动复制一遍公钥 (反正ssh-copy-id本身也只是简化了这一步骤而已,没其他特殊的)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5766 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 01:58 · PVG 09:58 · LAX 18:58 · JFK 21:58
    ♥ Do have faith in what you're doing.