Skip to content

Error reading SSH protocol banner in aws instance and scp: /home/ubuntu//ros_workspace.tar: Permission denied in gcp #115

@ghost

Description

Describe the bug
I am trying to build and run this project. I have used Amazon Cloud and also Google Cloud but always getting error.

To Reproduce
In AWS

  1. Create AWS instance
  2. Copy ami and region info

In Google Cloud

  1. Create project
  2. Build project and run

Also build docker images but still getting errors.

Expected behavior
It should build, connect and run.

Amazon cloud in native

[WARN] [1682773686.022252877] [fogros2.scp]: Error reading SSH protocol banner[Errno 104] Connection reset by peer, retrying...
Exception (client): Error reading SSH protocol banner[Errno 104] Connection reset by peer
Traceback (most recent call last):
  File "/home/c0der/.local/lib/python3.10/site-packages/paramiko/transport.py", line 2268, in _check_banner
    buf = self.packetizer.readline(timeout)
  File "/home/c0der/.local/lib/python3.10/site-packages/paramiko/packet.py", line 374, in readline
    buf += self._read_timeout(timeout)
  File "/home/c0der/.local/lib/python3.10/site-packages/paramiko/packet.py", line 601, in _read_timeout
    x = self.__socket.recv(128)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/c0der/.local/lib/python3.10/site-packages/paramiko/transport.py", line 2091, in run
    self._check_banner()
  File "/home/c0der/.local/lib/python3.10/site-packages/paramiko/transport.py", line 2272, in _check_banner
    raise SSHException(
paramiko.ssh_exception.SSHException: Error reading SSH protocol banner[Errno 104] Connection reset by peer

Google cloud in docker log

Installing collected packages: scp
Successfully installed scp-0.14.5
Defaulting to user installation because normal site-packages is not writeable
Collecting wgconfig
  Downloading wgconfig-0.3.0-py3-none-any.whl (20 kB)
Installing collected packages: wgconfig
Successfully installed wgconfig-0.3.0
/home/root fog_ws
removing old workspace
[ERROR] [launch]: Caught exception in launch (see debug for traceback): Caught exception when trying to load file of format [py]: scp: /home/ubuntu//ros_workspace.tar: Permission denied

root@DESKTOP-KR8NT80:/home/root/fog_ws#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions