fix for use with 1984.is - force rsa on ssh
This commit is contained in:
parent
73a6a9b4ea
commit
6f9bb91eb7
|
@ -28,9 +28,9 @@
|
|||
1. Set up SSH key for connecting to the server
|
||||
|
||||
```
|
||||
ssh-keygen -t ed25519 -C "your_email@example.com"
|
||||
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
|
||||
eval "$(ssh-agent -s)"
|
||||
ssh-add ~/.ssh/id_ed25519
|
||||
ssh-add ~/.ssh/id_rsa
|
||||
```
|
||||
|
||||
2. Copy your public key and add it to the Git repository account
|
||||
|
@ -38,7 +38,7 @@
|
|||
To view the public key, type the following
|
||||
|
||||
```
|
||||
cat ~/.ssh/id_ed25519.pub
|
||||
cat ~/.ssh/id_rsa.pub
|
||||
```
|
||||
|
||||
3. Clone the repository
|
||||
|
|
|
@ -30,7 +30,7 @@ then
|
|||
|
||||
# via scp - this will not delete old files
|
||||
echo "scp -r -P ${PORT} -o User=${USER} $DIR/* ${HOST}:${REMOTE_DIR}"
|
||||
scp -r -P ${PORT} -o User=${USER} $DIR/* ${HOST}:${REMOTE_DIR}
|
||||
scp -r -P ${PORT} -o User=${USER} -o HostKeyAlgorithms=+ssh-rsa $DIR/* ${HOST}:${REMOTE_DIR}
|
||||
|
||||
# via rsync - this command will delete everything on the server that's not in the local build folder
|
||||
# rsync -avz --delete "$DIR"/ ${USER}@${HOST}:~/${REMOTE_DIR} && git restore --staged . && git add public && git commit -m "deployed changes to server" && echo "Changes deployed to $HOST" || echo "No changes deployed to $HOST"
|
||||
|
|
Loading…
Reference in a new issue