ssh-copy-id fails with message 'Ambiguous output redirect.' with a non-sh style remote shell

Solution Verified - Updated -

Issue

  • ssh-copy-id root@evebe165
    Ambiguous output redirect.

  • Changing the remote shell to bash fixes the problem

Environment

  • Red Hat Enterprise Linux
  • OpenSSH

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content