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

Awless ssh, add an option to specify end target port behind bastion #154

Closed
rgarrigue opened this issue Oct 19, 2017 · 1 comment
Closed

Comments

@rgarrigue
Copy link

Hello

I'ld like to connect to my gitlab port 2222 through my bastion. The command could look like this

awless ssh --through me@ssh-bastion gitlab:2222
awless ssh --through me@ssh-bastion gitlab --end-port 2222

I tried --port, but it's connecting to bastion's port 2222 instead of gitlab's, something like

awless ssh --through me@ssh-bastion:2222 gitlab

The reason behind this is, I moved gitlab server's sshd to 2222 since 22 is used by git. No the most common case, but it happens.

Thanks for the very very nice cli by the way 🥂

@simcap
Copy link
Contributor

simcap commented Oct 19, 2017

Thanks. Fixed in master (and for next release 0.1.6).

Introduced a --through-port flag to specify a proxy port. If not specified it will be 22. We avoided the otherwise good notation me@bastion:2222 since host & instance names can contains a : char.

You can use the -h help flag i.e. awless ssh -h as I have added more example and better doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants