Commit Graph

9 Commits

Author SHA1 Message Date
Alan Somers
3aae5ca6fd scripts: fix bash path in shebangs
/bin/bash is a Linuxism.  Other operating systems install bash to
different paths.  Use /usr/bin/env in shebangs to find bash.

Signed-off-by: Alan Somers <asomers@gmail.com>
2017-07-27 13:24:26 -06:00
Willem Jan Withagen
e62a1f86c8 tools/scripts:"FreeBSD getopt is not compatible, use the one from packages"
- src/ceph-osd-prestart.sh
 - src/ceph-osd-prestart.sh

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-02-04 23:09:02 +01:00
David Galloway
a61fcb2eac ceph-post-file: Ignore keys offered by ssh-agent
In my case, I had multiple private keys in ssh-agent which resulted in
the sftp connection failing despite explicitly specifying the private
key to use

Signed-off-by: David Galloway <dgallowa@redhat.com>
2016-08-22 10:27:53 -04:00
David Galloway
ecd02bf3f1 ceph-post-file: migrate to RSA SSH keys
DSA keys are being deprecated: http://www.openssh.com/legacy.html

drop.ceph.com will continue to allow the old DSA key but eventually,
users submitting logs using ceph-post-file will run into issues when
OpenSSH completely drops support for the algorithm.

Fixes: http://tracker.ceph.com/issues/14267

Signed-off-by: David Galloway <dgallowa@redhat.com>
2016-08-22 10:27:36 -04:00
Joseph McDonald
ee170eadcd ceph-post-file: improve check for a source install
Signed-off-by: Joseph McDonald <joseph.mcdonald@alcatel-lucent.com>
2015-06-01 15:38:07 -07:00
Joseph McDonald
b84031ed5e ceph-post-file: behave when sftp doesn't take -i
Fixes: #11836
Signed-off-by: Joseph McDonald <joseph.mcdonald@alcatel-lucent.com>
2015-06-01 15:37:58 -07:00
Dan Mick
6f40b64463 ceph-post-file: use getopt for multiple options, add longopts to help
Fixes: #7993
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2014-04-04 15:26:42 -07:00
Sage Weil
e60d4e09e9 ceph-post-file: use mktemp instead of tempfile
tempfile is a debian thing, apparently; mktemp is present everywhere.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-08-30 09:41:29 -07:00
Sage Weil
d08e05e463 ceph-post-file: single command to upload a file to cephdrop
Use sftp to upload to a directory that only this user and ceph devs can
access.

Distribute an ssh key to connect to the account.  This will let us revoke
the key in the future if we feel the need.  Also distribute a known_hosts
file so that users have some confidence that they are connecting to the
real ceph drop account and not some third party.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
2013-08-16 17:59:11 -07:00