-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error message: ssh: handshake failed: ssh: no common algorithm for key exchange; client offered: [curve25519-sha256@libssh.org ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521 diffie-hellman-group14-sha1], server offered: [diffie-hellman-group-exchange-sha256] #15
Comments
please post your config. |
|
@appleboy I am having the same issue despite giving the secret the private key. I copy/pasted your section of the config from the marketplace docs and created /opt/app on my Digital Ocean droplet to mirror what the defaults were for the action. Here's the Actions output and config:
|
@clairmont32 Please don't use
|
Hi @appleboy, that didnt yield a different result. If it's supposed to be |
@clairmont32 I updated the docs. |
I will release a new version for this feature. ref: appleboy/ssh-action#36 |
Please try the 0.0.9 version. https://github.com/appleboy/scp-action/releases/tag/v0.0.9 |
I'm still seeing the exact error with v.0.0.9. Please consider re-opening.
|
@amoravec Could you provide some instructions about how to generate the ssh key, your ssh server version, and related config? |
I generated the keys with ssh-keygen.. 'ssh-keygen -t rsa -b 4096' The server is a hosting provider, I cannot read the configuration, but looking at ssh -vvv, it appears they have locked down the KexAlgorithm to only 'diffe-hellman-group-exchange-sha256'..
|
@clairmont32 Did you solve your issue? I am running into the same error.
Actions Config:
SSH-Key was generated via |
@amoravec Can you help to try the v0.0.11 version. https://github.com/appleboy/scp-action/releases/tag/v0.0.11 |
@JohannesKuehnel honestly, I haven't tried in a couple weeks due to various work/life things. @appleboy I'll give it a try this weekend as well |
@clairmont32 Please update your client ssh config:
|
@clairmont32 I will bump the new version to fix this issue. |
fix server offered: [diffie-hellman-group-exchange-sha256] error See #15
@clairmont32 Please try the https://github.com/appleboy/scp-action/releases/tag/v0.1.0 version and update config as following: - name: use insecure cipher
uses: appleboy/scp-action@v0.1.0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH2 }}
passphrase: ${{ secrets.PASSPHRASE }}
port: ${{ secrets.PORT }}
source: "tests/a.txt,tests/b.txt"
target: "test"
use_insecure_cipher: true You must make sure the |
@appleboy I copy/pasted the above but kept my source, target, and changed |
@appleboy i used your suggested config, but i'm still receiving the following error: error copy file to dest: ***, error message: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain my config: - id: create-secret-files
name: Create secret files
run: |
mkdir -p $SSL_SOURCE
echo $DOPPLER_PROJECT >> .env.doppler
echo $DOPPLER_TOKEN >> .env.doppler
echo $SSL_CERTIFICATE >> $SSL_SOURCE/fullchain.pem
echo $SSL_CERTIFICATE_KEY >> $SSL_SOURCE/privkey.pem
echo $SSL_TRUSTED_CERTIFICATE >> $SSL_SOURCE/chain.pem
env:
DOPPLER_PROJECT: ${{ secrets.DOPPLER_PROJECT }}
DOPPLER_TOKEN: ${{ secrets.DOPPLER_TOKEN_VM }}
SSL_CERTIFICATE: ${{ secrets.SSL_CERTIFICATE }}
SSL_CERTIFICATE_KEY: ${{ secrets.SSL_CERTIFICATE_KEY }}
SSL_SOURCE: nginx/ssl/letsencrypt/${{ secrets.HOSTNAME }}
SSL_TRUSTED_CERTIFICATE: ${{ secrets.SSL_TRUSTED_CERTIFICATE }}
- id: ssh-root-files
name: Upload root project files to VM
uses: appleboy/scp-action@v0.1.2
with:
debug: true
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_KEY }}
rm: true
source: .env.doppler,docker-cloud.yml,docker-compose.yml
target: /opt/sneusers/
use_insecure_cipher: true
username: ${{ secrets.SSH_USERNAME }}
- id: ssh-nginx-config
name: Upload Nginx configuration to VM
uses: appleboy/scp-action@v0.1.2
with:
debug: true
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_KEY }}
rm: true
source: nginx/
strip_components: 1
target: /opt/sneusers/nginx/
use_insecure_cipher: true
username: ${{ secrets.SSH_USERNAME }} |
scp file to server. |
I'am so painful ,could you help me, sir |
I use the password and username to copy the dir to remote machine. why there is an error here, I can't understand. |
error password. thx guys. |
scp file to server. @appleboy Any updates? |
Problem has been fixed
|
I have the same problem |
I'm getting this error
complete log
The text was updated successfully, but these errors were encountered: