Re: RFC: ssh-copy-id tweaks

This is a discussion on Re: RFC: ssh-copy-id tweaks within the OpenSSH Development forums, part of the Networking and Network Related category; Circa 2008-02-05 12:48 dixit Bob Proulx: : echo "--> $*" : : Because of the leading '-' I worry that ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-05-2008
Jim Knoble
 
Posts: n/a
Default Re: RFC: ssh-copy-id tweaks

Circa 2008-02-05 12:48 dixit Bob Proulx:

: echo "--> $*"
:
: Because of the leading '-' I worry that some echo implementations
: might confused this with an option syntax. [...] But perhaps I worry
: needlessly here.

Good point. Not necessarily needless worry. That's the sort of thing
we always hope to leave in the past, but which inevitably arises when
we've gotten comfortable about forgetting it.

[use 'sed /.../d' instead of 'grep -v' with output of 'ssh-add -L']

: [...] using sed is better because the exit status of sed indicates the
: success or failure of the operation. And if there is an error then we
: would want to see it.

Maybe. We might want ssh-copy-id to catch the error and emit a friendly
warning message.

: - if [ ${msgcount} -eq 1 ]; then
: + if [ ${msgcount} -eq 1 ]; then
:
: There is a trailing space on that line. It would be great if that
: were cleaned up.

Agreed.

: I hate to even suggest this after seeing your efforts but if I were
: doing this I would have piped the script into the remote shell on
: stdin and passed the keys to it through the argument list instead of
: the other way around.[...]

I thought about piping the script to stdin as well, but the script was
somewhat smaller then and it didn't seem as necessary. It seems to have
grown somewhat....

Thanks for your feedback.

--
jim knoble | jmknoble@pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG key ID: 6F39C2CC >>>>>> http://www.pobox.com/~jmknoble/keys/ )
(GnuPG fingerprint: 5024:D578:7CF4:5660:7269::F6F3:B919:9307:6F39:C2CC )
+----------------------------------------------------------------------+
|[L]iberty, as we all know, cannot flourish in a country that is perma-|
| nently on a war footing, or even a near-war footing. --Aldous Huxley|
+----------------------------------------------------------------------+
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
https://lists.mindrot.org/mailman/li...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:27 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0