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

docker-image: instance server ssh not working #1488

Closed
sdurrheimer opened this issue Oct 19, 2020 · 0 comments · Fixed by #1502
Closed

docker-image: instance server ssh not working #1488

sdurrheimer opened this issue Oct 19, 2020 · 0 comments · Fixed by #1502
Labels
instance Instance issues, bugs and feature requests

Comments

@sdurrheimer
Copy link

Description:

The instance server ssh command is not working with the docker image.
As the base image is scratch it doesn't contain the ssh command being executed by the CLI.

How to reproduce:

  • Have an existing server running
  • Use the scw instance ssh command via the docker image

Command attempted

$ docker run -i --rm -v $HOME/.config/scw:/.config/scw scaleway/cli:v2.2.0 instance server ssh <server-id>

Expected Behavior

Working SSH connection, or complaining that I didn't provide an authorized ssh key.

Actual Behavior

$ docker run -i --rm -v $HOME/.config/scw:/.config/scw scaleway/cli:v2.2.0 instance server ssh <server-id>
Exec: "ssh": executable file not found in $PATH

More info

It would be probably better to use a base image able to have an ssh-client installed (alpine, debian-slim, etc.).
Most people will expect the CLI to behave the same with or without using the docker image.

Version

Version 2.2.0
BuildDate 2020-10-12T01:49:28PM
GoVersion go1.14.9
GitBranch new-release
GitCommit 0cd946a
GoArch amd64
GoOS linux

@remyleone remyleone added the instance Instance issues, bugs and feature requests label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
instance Instance issues, bugs and feature requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants