0

To test I turned on remote login on my mac and tried ssh and sftp from my google cloud compute engine instance. ssh user@ip and sftp@ip but in both cases the connection fails with "Couldn't read packet: Connection reset by peer." Is there a recommended way to upload files to sftp from google cloud?

  • Can you connect to your server from any other machine on Internet (outside your local network)? – Martin Prikryl Oct 10 at 5:12
  • yes I can connect. – k4q34097 Oct 10 at 5:58
  • So show us as output of ssh -vv user@ip from both the GCE and the other machine + Is it newly setup GCE machine with all defaults? Or an existing machine, that might have special network rules that prevent outgoing connections? – Martin Prikryl Oct 10 at 6:02
  • Here is the debug output from ssh -vv user@ip. I can run the same command fine locally. OpenSSH_7.4p1 Debian-10+deb, OpenSSL 1.0.2t debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "xxx" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to xxx port 22. debug1: connect to address xxx port 22: Connection timed out – k4q34097 Oct 10 at 9:19
  • 1
    Do not post important information in comments. Edit them into your question. – Martin Prikryl Oct 10 at 11:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.