Skip to content
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

Unable to negotiate with *** port ***: no matching host key type found. #49

Closed
wpplumber opened this issue Sep 7, 2023 · 4 comments · Fixed by #59
Closed

Unable to negotiate with *** port ***: no matching host key type found. #49

wpplumber opened this issue Sep 7, 2023 · 4 comments · Fixed by #59
Assignees
Labels

Comments

@wpplumber
Copy link

I run the following action but give the error below:

  • name: rsync deployments
    uses: burnett01/[email protected]
    with:
    switches: -avzr --delete
    path: ./dist/ssr/
    remote_path: ${{ vars.HOST_PATH }}
    remote_host: ${{ secrets.SSH_HOST }}
    remote_port: ${{ secrets.SSH_PORT }}
    remote_user: ${{ secrets.SSH_USER }}
    remote_key: ${{ secrets.SSH_KEY }}

Identity added: (stdin) ((stdin))
Unable to negotiate with *** port ***: no matching host key type found. Their offer: ssh-rsa,ssh-dss
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(231) [sender=3.2.7]

FYI I'm able to connect via terminal from my local machine:
The successful cmd is:
ssh user@ip -pXXXXX

@Burnett01
Copy link
Owner

Hi, @wpplumber

Can you please try a non-released version of this action: release/5.3

uses: burnett01/rsync-deployments@release/5.3

https://github.com/Burnett01/rsync-deployments/tree/release/5.3

Because it could be related to #24.

Please report back if it works with release/5.3 for you :)

Thanks

@Burnett01 Burnett01 self-assigned this Nov 29, 2023
@cklm
Copy link

cklm commented Jan 12, 2024

I need to connect to a rather old server with Ubuntu 14. Using the current version 6.0 results in an error:

Identity added: (stdin) ((stdin))
Warning: Permanently added '***' (ED25519) to the list of known hosts.
Permission denied, please try again.
Permission denied, please try again.
***@***: Permission denied (publickey,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]

server says in /var/log/auth.log

Jan 12 11:57:52 server sshd[12414]: Failed password for <username> from <runner-ip> port 36864 ssh2
Jan 12 11:57:52 server sshd[12414]: Failed password for <username> from <runner-ip> port 36864 ssh2
Jan 12 11:57:52 server sshd[12414]: Connection closed by <runner-ip> [preauth]

which is an interesting error-message, since we are using the key for authorization, not a password. Using release/5.3 works in that case. Thank you!

@Burnett01
Copy link
Owner

thanks for the feedback @cklm ! I will thus make an official release for 5.3 soon

@Burnett01
Copy link
Owner

With the latest release 7.0.0 it is now possible to use legacy RSA hostkeys as an official feature of this action.

Feel free to update to the latest release and activate the support:

    - name: rsync deployments
      uses: burnett01/[email protected]
      with:
        switches: -avzr --delete
        legacy_allow_rsa_hostkeys: "true"
        path: ......

More about that in the README.md

@Burnett01 Burnett01 added enhancement New feature or request resolved labels Mar 6, 2024
@Burnett01 Burnett01 pinned this issue Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants