fix for use with 1984.is - force rsa on ssh

This commit is contained in:
ace 2023-05-02 01:07:49 +01:00
parent 73a6a9b4ea
commit 6f9bb91eb7
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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"