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

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Mon Jul 14 04:31:23 EST 2014


https://bugzilla.mindrot.org/show_bug.cgi?id=2206

Martin Ueding <von.mindrot.org at martin-ueding.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |von.mindrot.org at martin-uedi
                   |                            |ng.de

--- Comment #1 from Martin Ueding <von.mindrot.org at martin-ueding.de> ---
I use the Fish shell which does not use the &&. So this causes errors
here as well:

ssh-copy-id mu at martin-pi.local
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s),
to filter out any that are already installed     
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you
are prompted now it is to install the new keys   
mu at martin-pi.local's password:                                          
fish: Expected a command name, got token of type 'Job im Hintergrund
ausführen'. Did you mean 'COMMAND; and COMMAND'? See the help section
for the 'and' builtin command by typing 'help and'.                     
Standard input:                 mkdir -p .ssh && cat >>
.ssh/authorized_keys || exit 1 ;                               
                                               ^                        
The suggestion by Petr Lautrbach sounds good, since you cannot rely on
the shell, you have to start your own. Maybe some script could be
shipped with the openssh-server that accepts the keys?

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list