Results 1 to 6 of 6

Thread: Error with ssh-copy-id

  1. #1
    Join Date
    Feb 2012
    Beans
    30

    Question Error with ssh-copy-id

    Hi

    Please, help me.

    I created a ssh key and then I need to copy this id to other host

    and I run this command
    ssh-copy-id -i ~/.ssh/id_rsa.pub user@remotehost

    and the result is
    /usr/bin/ssh-copy-id: ERROR: No identities found

    I see and try several tutorial with this error, but I cann't solved.

    Any ideas?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Error with ssh-copy-id

    Quote Originally Posted by YesGood View Post
    ssh-copy-id -i ~/.ssh/id_rsa.pub user@remotehost
    Probably a silly question, but you ARE substituting your username and hostname for user@remotehost?
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Feb 2012
    Beans
    30

    Re: Error with ssh-copy-id

    Hi, thanks Iowan

    Yes, I sustituted with the respective name of user and hostname.

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Error with ssh-copy-id

    I stumbled across this...
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Sep 2010
    Location
    Cardiff, UK
    Beans
    37
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Error with ssh-copy-id

    Thanks Iowan, that solved the problem for me. I copy here the solution from the blog:

    "If trying to connect to x2go for the first time gives the error:


    Authentification Failed
    The host key for this server was not found but an othertype of key exists.An Attacker might change the default server key toconfuse your client into thinking the key does not exist


    This will happen if you SSH into the server before installing x2go. SSH by default likes ecdsa keys, and x2go doesn't. On the server, edit the ssh config:
    sudo nano /etc/ssh/sshd_config


    Then comment out this line with a #:
    HostKey /etc/ssh/ssh_host_ecdsa_key


    Now restart ssh:
    sudo service ssh restart


    On your client you need to remove your old key. I just removed all of them.
    rm .ssh/known_hosts"

  6. #6
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Error with ssh-copy-id

    Good to hear - you can mark this one [SOLVED]
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •