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

fix(tools): fabric all-in-one SSH access denied #631

Closed
petermetz opened this issue Mar 5, 2021 · 0 comments · Fixed by #633
Closed

fix(tools): fabric all-in-one SSH access denied #631

petermetz opened this issue Mar 5, 2021 · 0 comments · Fixed by #633
Assignees
Labels
bug Something isn't working Fabric

Comments

@petermetz
Copy link
Member

Describe the bug

The SSH connection to the running fabric all in one container cannot be established despite having access to the private key of which the public key is already placed in the authorized_keys file.

To Reproduce

  1. Launch the fabric aio container and try to SSH in
  2. Observe that your attempt is rejected by the open-ssh server despite presenting the correct private key.

Expected behavior

SSH works.

Logs/Stack traces

N/A

Screenshots

N/A

Cloud provider or hardware configuration:

Dev machine

Operating system name, version, build:

Linux 5.8.0-44-generic x86_64
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Hyperledger Cactus release version or commit (git rev-parse --short HEAD):

ecd63b9

Hyperledger Cactus Plugins/Connectors Used

Fabric

Additional context

This came up during the development of the Fabric contract deployment endpoint which depends on having a working SSH connection in order to fulfill its duties.

cc: @takeutak @sfuji822 @hartm @jonathan-m-hamilton @AzaharaC @jordigiam @kikoncuo

@petermetz petermetz added bug Something isn't working Fabric labels Mar 5, 2021
@petermetz petermetz self-assigned this Mar 5, 2021
petermetz added a commit to petermetz/cacti that referenced this issue Mar 5, 2021
Fixes hyperledger#631

The root user account was locked (assuming by default)
so had to give it a password just so that we can log
in with it via SSH.
Since we don't actually plan on using the root password
I just set it to a UUID to make it a little less trivial
to recover it (which shouldn't matter anyway since we
strictly advise against using the AIO images in production
anyway).

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
petermetz added a commit to petermetz/cacti that referenced this issue Mar 8, 2021
Fixes hyperledger#631

The root user account was locked (assuming by default)
so had to give it a password just so that we can log
in with it via SSH.
Since we don't actually plan on using the root password
I just set it to a UUID to make it a little less trivial
to recover it (which shouldn't matter anyway since we
strictly advise against using the AIO images in production
anyway).

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
petermetz added a commit that referenced this issue Mar 9, 2021
Fixes #631

The root user account was locked (assuming by default)
so had to give it a password just so that we can log
in with it via SSH.
Since we don't actually plan on using the root password
I just set it to a UUID to make it a little less trivial
to recover it (which shouldn't matter anyway since we
strictly advise against using the AIO images in production
anyway).

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fabric
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant