V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
savingralf
V2EX  ›  Linux

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

  •  
  •   savingralf · Jun 16, 2013 · 3992 views
    This topic created in 4706 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   ·   921 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:32 · PVG 02:32 · LAX 11:32 · JFK 14:32
    ♥ Do have faith in what you're doing.