Bug 781 - ssh-copy-id carries on if ssh fails
Summary: ssh-copy-id carries on if ssh fails
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: 3.6.1p2
Hardware: All Linux
: P2 minor
Assignee: OpenSSH Bugzilla mailing list
URL: http://bugs.debian.org/215252
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-04 11:51 AEDT by Colin Watson
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments
make ssh-copy-id exit if ssh fails (743 bytes, patch)
2004-01-04 11:52 AEDT, Colin Watson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Watson 2004-01-04 11:51:42 AEDT
If ssh fails, for instance because the user mistyped the hostname, ssh-copy-id
carries on and tells them to try logging into the machine to check that
everything's OK. It should check the exit code and itself exit immediately at
that point.

I'll attach a patch in a moment.
Comment 1 Colin Watson 2004-01-04 11:52:31 AEDT
Created attachment 521 [details]
make ssh-copy-id exit if ssh fails
Comment 2 Darren Tucker 2004-01-04 14:17:14 AEDT
Patch applied, thanks.
Comment 3 Damien Miller 2004-04-14 12:24:20 AEST
Mass change of RESOLVED bugs to CLOSED