gameserverapp / Platform

Contribute to GameServerApp. Upvote suggestions, post new ideas and report bugs.
https://docs.gameserverapp.com
11 stars 9 forks source link

SFTP using incompatible cypher #610

Open scarecr0w12 opened 7 months ago

scarecr0w12 commented 7 months ago

Please make sure to leave out any sensitive information!

Describe the bug When connecting to SFTP during the setup process for RconConnect, on a server using Pterodactyl panel, the Algo used by the GSA client is incompatible with the Servers SFTP Algo.

To Reproduce Steps to reproduce the behavior:

  1. Create Ptero based server
  2. Setup Rconconnect GSA Server
  3. use the SFTP creds from PTero in the GSA setup
  4. Attempt to connect via SFTP or SSH

Expected behavior Connects to the SFTP server

Additional context Error produced by SFTP Server:

ERROR: [Nov 29 11:11:49.894] sftp: failed to accept inbound connection error=ssh: no common algorithm for host key; client offered: [rsa-sha2-256 rsa-sha2-512 ssh-rsa ssh-dss], server offered: [ssh-ed25519]

Stacktrace:
ssh: no common algorithm for host key; client offered: [rsa-sha2-256 rsa-sha2-512 ssh-rsa ssh-dss], server offered: [ssh-ed25519]
github.com/pterodactyl/wings/sftp.(*SFTPServer).AcceptInbound
        /root/wings/sftp/server.go:108
github.com/pterodactyl/wings/sftp.(*SFTPServer).Run.func3
        /root/wings/sftp/server.go:94
runtime.goexit
        /usr/lib/golang/src/runtime/asm_amd64.s:1598
mvaessen commented 7 months ago

Hi, thanks for the info!

I did a quick check and in order to accept the ed25519 cert the system needs to get updated. because this needs extensive testing will it take a bit more time. For now I recommend using FTP or SSH, or use an RSA key for SFTP.

I don't have an eta when this will be fixed.

scarecr0w12 commented 7 months ago

No worries, the only issue with Pterodactyl panel (My use case in this example), is that it does not allow for regular FTP, and SSH/SFTP both have the same issue. The workaround for now is to SSH the host machine directly, and use the volume for the game server as the source directory.

It works(Have not come across any issues as of yet), so i am happy to wait for a full resolution.