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

Exec should work even on servers without public IP #70

Closed
shouze opened this issue Jul 13, 2015 · 9 comments
Closed

Exec should work even on servers without public IP #70

shouze opened this issue Jul 13, 2015 · 9 comments
Assignees

Comments

@shouze
Copy link

shouze commented Jul 13, 2015

PAIN POINT

ATM we can't scw exec on some machine with no public IP attached.

DIAGNOSTIC

exec CMD looks to rely on a call to utils.SSHExec.
So... we could use some ssh tunneling to keep it working under this kind of circumstances.

PROPOSALS

  1. Scaleway brings a very secured SSH Gateway for all of its customers. scw uses this ssh gateway for all machines without public IP. Cons: it's not easy to provide & maintain a very secured service of that kind.
  2. Customers can use one of their machines with public IP to access to their backend machine. This is probably the best solution.

Whatever the solution, exec can have an option -g, --gateway=SERVER. Also, a general exec_gateway config parameter could be set to avoid passing this parameter at each exec call.

@edouardb
Copy link
Contributor

👍 for option 2

@aimxhaisse
Copy link
Contributor

also 👍 for option 2

@moul
Copy link
Contributor

moul commented Jul 13, 2015

👍 for option 2

@aimxhaisse aimxhaisse self-assigned this Jul 13, 2015
@moul moul reopened this Jul 13, 2015
@moul
Copy link
Contributor

moul commented Jul 13, 2015

@shouze, can you try again ?

We need to add some minor fixes, but you should be able to use it right now

@shouze
Copy link
Author

shouze commented Jul 13, 2015

@moul it works like a charm! Just a design feedback: the -g option value should be a server hash reference imho.

Why?

If we accept an IPv4 value we pretty kill the beauty of the thing. Moreover, we can't pass a public IP of a gateway outside of Scaleway network so a reference is to me a definitive way to not have to manage this problem. The reference hash need to be resolved the same way the hash of the endpoint machine is resolved of course.

@moul
Copy link
Contributor

moul commented Jul 13, 2015

yes 👍

moul added a commit that referenced this issue Jul 13, 2015
moul added a commit that referenced this issue Jul 13, 2015
@moul
Copy link
Contributor

moul commented Jul 13, 2015

@shouze, can you try again with: scw exec --gateway=myotherserver myserver bash ?

@shouze
Copy link
Author

shouze commented Jul 15, 2015

@moul works like a charm!

@moul
Copy link
Contributor

moul commented Jul 20, 2015

Those options are now available in the release v1.3.0 version

clement-gilbert pushed a commit to clement-gilbert/scaleway-cli that referenced this issue Mar 3, 2022
Add documentation about volumes usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants