0

I've been trying to import costs via SFTP, but I'm unable to get past Create & generate key. For testing purposes, I've created a SFTP server, and I'm able to connect to it from outside the network just fine, but when I pass the correct username & server url to the Data import settings, it just throws 500 without any further information.

Strange is that the Analytics are actually trying to connect to the SFTP server (I can see it through the logs) with the username placeholder, but they fail because of lack of public key - which they are supposed to give me AFTER Create & generate key button is pressed. Thanks for any advice.

Analytics

sftp server logs

EDIT:

Since Analytics are trying to connect to the server with JSch library, I've tried to implement it my self, and it was able to successfully connect to the server. The main thing that bothers me is that google is for some reason trying to connect to the server without providing the key first and with wrong username as well. I've also found out, that others had the same problem, and already asked on the google support - but without any response.

EDIT 2:

I've realized, that you should not provide username as part of the server URL - as stated in documentation, but even if server URL without username is provided, it still does the same thing.

1 Answer 1

2

To your /etc/ssh/sshd_config add following lines.

HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

Then restart service

sudo systemctl restart sshd

Issue is that in newer versions they removed ssh-rsa by default and Google Analytics still require it. There is no documentation about it so... enjoy :)

Also here is Community Post about it

1
  • Yes, thats is the correct solution. To be honest, they actually do have it in their documentation. Aug 3 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.