Bugzilla – Attachment 2756 Details for
Bug 2206
ssh-copy-id fails with message 'Ambiguous output redirect.' with a non-sh style remote shell
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use "sh" on remote system
ssh-copy-id.patch (text/plain), 665 bytes, created by
Radek Podgorny
on 2015-11-24 23:11:08 AEDT
(
hide
)
Description:
use "sh" on remote system
Filename:
MIME Type:
Creator:
Radek Podgorny
Created:
2015-11-24 23:11:08 AEDT
Size:
665 bytes
patch
obsolete
>--- /usr/bin/ssh-copy-id 2015-08-21 09:38:05.000000000 +0200 >+++ tmp/ssh-copy-id 2015-11-24 12:52:11.532453352 +0100 >@@ -270,9 +270,9 @@ > # Assuming that the remote host treats ~/.ssh/authorized_keys as one might expect > populate_new_ids 0 > [ "$DRY_RUN" ] || printf '%s\n' "$NEW_IDS" | ssh "$@" " >- umask 077 ; >+ sh -c 'umask 077 ; > mkdir -p .ssh && cat >> .ssh/authorized_keys || exit 1 ; >- if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi" \ >+ if type restorecon >/dev/null 2>&1 ; then restorecon -F .ssh .ssh/authorized_keys ; fi'" \ > || exit 1 > ADDED=$(printf '%s\n' "$NEW_IDS" | wc -l) > ;;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2206
: 2756