-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Is this possible with assh? #100
Comments
Hi @ashmatadeen, Your configuration should works, however, there is a bug, I'm resolving twice the example: Using your configuration file: $ ssh -v server1
[...]
debug1: Executing proxy command: exec assh proxy --port=22 server1.domain.com
[...]
time="2016-02-02T00:09:47+01:00" level=info msg="Host server1.domain.com"
time="2016-02-02T00:09:47+01:00" level=info msg=" HostName server1.domain.com.domain.com"
time="2016-02-02T00:09:47+01:00" level=info msg=" IdentityFile ~/.ssh/id_ecdsa"
time="2016-02-02T00:09:47+01:00" level=info msg=" User ash" |
As a temporary fix, you can use this: "server*":
#Hostname: "%h.domain.com"
ResolveCommand: "echo %h.domain.com"
User: ash
IdentityFile: ~/.ssh/id_ecdsa |
Thanks @moul |
I just pushed a fix (see #103, c403cf4) Can you rebuild assh and give a new try ? |
I also made a new release: https://github.com/moul/advanced-ssh-config/releases/tag/v2.2.0 so you can fetch the artifacts as you did the first time |
That worked @moul Thanks for the fix. One more thing though, is this expected output when running |
Cool ! Is the output like this:
Or like this:
? In the first case, I think this is an old message, probably an old SSH connection that stayed open thanks to ControlMaster SSH support In the second case, it looks normal ! However, the error messages can be improved to be more human-readable :) any advices ? |
It's the second one. The config file gets generated successfully and works as expected despite the error. I'm not clear on what the proxy error means though. |
The
I didn't split 1. and 2. into two actions, so in the This error is not related with 1. and 2. but with 3., which here indicates that Give a try to these commands:
|
That makes more sense now. If the use case is to only generate the config file, maybe the command in step 3 under Getting started could be |
Yep, definitely ! Do you want to make the change ? :) |
Closing this issue as it was already addressed, do not hesitate to reopen it or open a new one if necessary Thanks again for your help |
run `assh build > ~/.ssh/config` instead of `assh proxy localhost` to generate config file. Please see #100 moul/assh#100
I would like to set up my ssh config to connect to a number of servers:
etc
by simply doing
ssh server[X]
Connection to all servers are with the same ssh key and same user.
Is this possible with assh?
I have tried this:
which errors with:
FATA[0000] Proxy error: dial tcp [::1]:22: getsockopt: connection refused
Thanks,
Ash
The text was updated successfully, but these errors were encountered: