mirror of
https://github.com/vmstan/gravity-sync.git
synced 2025-07-09 02:34:06 -04:00
Dropbear key creation update
This commit is contained in:
parent
e359ef7365
commit
be2881d629
@ -14,8 +14,8 @@ Download the latest release from [GitHub](https://github.com/vmstan/gravity-sync
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ~
|
cd ~
|
||||||
wget https://github.com/vmstan/gravity-sync/archive/v1.7.7.zip
|
wget https://github.com/vmstan/gravity-sync/archive/v1.7.8.zip
|
||||||
unzip v1.7.7.zip -d gravity-sync
|
unzip v1.7.8.zip -d gravity-sync
|
||||||
cd gravity-sync
|
cd gravity-sync
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
- SSH/RSYNC connection logic rewritten to be specific to client options between OpenSSH, OpenSSH w/ SSHPASS, and Dropbear.
|
- SSH/RSYNC connection logic rewritten to be specific to client options between OpenSSH, OpenSSH w/ SSHPASS, and Dropbear.
|
||||||
- Removes INFO that SSHPASS is not installed during config, if it's not needed. Redirects user to documentation.
|
- Removes INFO that SSHPASS is not installed during config, if it's not needed. Redirects user to documentation.
|
||||||
- Better error handling of configuration options.
|
- Better error handling of configuration options.
|
||||||
|
- Adds custom port specification to ssh-copy-id command during configuration generation.
|
||||||
|
- OpenSSH key generation works without user prompts.
|
||||||
|
|
||||||
#### 1.7.7
|
#### 1.7.7
|
||||||
- `config` function will attempt to ping remote host to validate network connection, can by bypassed by adding `PING_AVOID='1'` to your `gravity-sync.conf` file.
|
- `config` function will attempt to ping remote host to validate network connection, can by bypassed by adding `PING_AVOID='1'` to your `gravity-sync.conf` file.
|
||||||
|
@ -692,13 +692,11 @@ function detect_sshkeygen {
|
|||||||
then
|
then
|
||||||
MESSAGE="Using DROPBEARKEY Instead"
|
MESSAGE="Using DROPBEARKEY Instead"
|
||||||
echo_info
|
echo_info
|
||||||
if [ -d $HOME/.ssh ]
|
if [ ! -d $HOME/.ssh ]
|
||||||
then
|
then
|
||||||
KEYGEN_COMMAND="dropbearkey -t rsa -f"
|
|
||||||
else
|
|
||||||
mkdir $HOME/.ssh >/dev/null 2>&1
|
mkdir $HOME/.ssh >/dev/null 2>&1
|
||||||
KEYGEN_COMMAND="dropbearkey -t rsa -f $HOME/${SSH_PKIF}"
|
|
||||||
fi
|
fi
|
||||||
|
KEYGEN_COMMAND="dropbearkey -t rsa -f"
|
||||||
else
|
else
|
||||||
MESSAGE="No Alternatives Located"
|
MESSAGE="No Alternatives Located"
|
||||||
echo_info
|
echo_info
|
||||||
@ -987,7 +985,7 @@ function config_generate {
|
|||||||
MESSAGE="Using Existing ~/${SSH_PKIF}"
|
MESSAGE="Using Existing ~/${SSH_PKIF}"
|
||||||
echo_info
|
echo_info
|
||||||
else
|
else
|
||||||
KEYGEN_COMMAND="ssh-keygen -q -N '' -t rsa -f"
|
KEYGEN_COMMAND="ssh-keygen -q -N \"\" -t rsa -f"
|
||||||
detect_sshkeygen
|
detect_sshkeygen
|
||||||
|
|
||||||
MESSAGE="Generating ~/${SSH_PKIF}"
|
MESSAGE="Generating ~/${SSH_PKIF}"
|
||||||
@ -1026,7 +1024,7 @@ function config_generate {
|
|||||||
echo -e "========================================================"
|
echo -e "========================================================"
|
||||||
if hash ssh-copy-id 2>/dev/null
|
if hash ssh-copy-id 2>/dev/null
|
||||||
then
|
then
|
||||||
ssh-copy-id -f -i $HOME/${SSH_PKIF}.pub ${REMOTE_USER}@${REMOTE_HOST}
|
ssh-copy-id -f -p ${SSH_PORT} -i $HOME/${SSH_PKIF}.pub ${REMOTE_USER}@${REMOTE_HOST}
|
||||||
elif hash dbclient 2>/dev/null
|
elif hash dbclient 2>/dev/null
|
||||||
then
|
then
|
||||||
dropbearkey -y -f $HOME/${SSH_PKIF} | grep "^ssh-rsa " > $HOME/${SSH_PKIF}.pub
|
dropbearkey -y -f $HOME/${SSH_PKIF} | grep "^ssh-rsa " > $HOME/${SSH_PKIF}.pub
|
||||||
|
Loading…
x
Reference in New Issue
Block a user