Wednesday, November 18, 2009

Use ssh-copy-id on a different port

ssh-copy-id has known problems with handling non-standard ports (e.g. connecting to a different port than 22). To overcome this issue, use a command like: $ ssh-copy-id "user@host -p 6842"

62 comments:

  1. another thanks ;-)

    ReplyDelete
  2. Cheers, very helpful :-)

    ReplyDelete
  3. Yet another thanks! :)

    ReplyDelete
  4. Thank you for the information.
    I was searching an information like this, since I was moving my SSH port to another port :)

    ReplyDelete
  5. Oh! The quotes... of course! Thanks

    ReplyDelete
  6. Thanks. +8 hr. of my life.

    ReplyDelete
  7. Thanks for posting this. ssh-copy-id still has this issue over 2 years after your original post.

    ReplyDelete
  8. You're the MAN! Thanks a lot

    ReplyDelete
  9. +1 man, saved me some confusion!

    ReplyDelete
  10. Thanks, saved just a few minutes, but thanks!

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Great was just looking for this

    ReplyDelete
  13. Thanks so much from Mexico

    ReplyDelete
  14. THANK YOU (from CCA http://www.cca.edu)

    ReplyDelete
  15. thanks from portland oregon

    ReplyDelete
  16. You, sir, are a gentleman and a scholar.

    ReplyDelete
  17. For years I have been temporarily changing the port back to 22 just to use copy-id. Why didn't I think to search for this sooner?

    Big Thanks for this post! Will save lots of time in the future

    ReplyDelete
  18. Found this so your still helping, thx!

    ReplyDelete
  19. Yet another THANKS ... and it's almost 4 years since you posted this!

    ReplyDelete
  20. Thanks for this post! it resolve my problem on connecting to my ssh server using keys!

    ReplyDelete
  21. Oh ,boy...
    I love you

    ReplyDelete
  22. Love when people talk to the point straight forward with no messing around. Thank you

    ReplyDelete
  23. And another +3 hours of karma credit! It's an undocumented "feature," right?

    ReplyDelete
  24. Thank you for sharing. This really, really, really helped :)

    ReplyDelete
  25. another thank you!

    ReplyDelete
  26. thanks from waterloo :)

    ReplyDelete
  27. The gift that keeps on giving. Very useful, thanks for this - all my devices run ssh on non-standard ports.

    ReplyDelete
  28. Thanks, appreciate this!

    ReplyDelete