https://bugzilla.mindrot.org/show_bug.cgi?id=1980
--- Comment #3 from Philip Hands <[email protected]> 2012-02-25 10:35:52 EST --- [Hmm, seems bugzilla ignored my reply, so I'll paste it in here] > https://bugzilla.mindrot.org/show_bug.cgi?id=1980 > > --- Comment #2 from Darren Tucker <[email protected]> 2012-02-24 11:50:27 EST --- [ 2 more citation lines. Click/Enter to show. ] > Comment on attachment 2133 > --> https://bugzilla.mindrot.org/attachment.cgi?id=2133 > patch showing differences from current > > It's a big diff so it's hard to evaluate it. Well, it's more an almost complete rewrite that a diff, so perhaps better to evaluate it from that point of view. > some random comments: > > > USER_HOST=${1%:} > > is that a bashism? it doesn't work with solaris' /bin/sh Really? It works in dash, so how out of date is solaris's version of posix? =-=-=-=- phil@poker:~/src/ssh-copy-id$ dash $ X=foo: $ echo $X foo: $ echo ${X%:} foo $ =-=-=-=- So, any suggestions for a portable implementation (given that I'd rather assumed that if dash does it, most other shell implementations would be capable too, but apparently not -- of course I've been writing shell stuff since the early '80s so it's a little difficult to remember what counts as obsolete these days). > >but it is much better to instead use > >+.Xr ssh 1 Ns 's [ 4 more citation lines. Click/Enter to show. ] > >+.Ar ProxyCommand > >+option with > >+.Xr netcat 1 > > you can use ssh -W insted of ssh+netcat as a proxycommand which behaves > the same but doesn't require anything on the intermediate host except > tcp port forwarding. Ah, good point, I'd not noticed that option, but that nicely side-steps the problem with there being two nc implementations with varying options, so I'll definitely be using that in future -- thanks. Cheers, Phil. -- Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. _______________________________________________ openssh-bugs mailing list [email protected] https://lists.mindrot.org/mailman/listinfo/openssh-bugs
