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

ssh bar/foo works fine -- ssh bar with default gateway foo fails #115

Closed
emanelif opened this issue Feb 17, 2016 · 6 comments
Closed

ssh bar/foo works fine -- ssh bar with default gateway foo fails #115

emanelif opened this issue Feb 17, 2016 · 6 comments
Assignees
Labels

Comments

@emanelif
Copy link

consider the following config

foo:
    Hostname: hostA
bar:
    Hostname: hostB
    Gateways:
        - foo

according to the readme ssh bar should work. However the connection times out then,

Connection timed out during banner exchange

The confusing thing is that ssh bar/foo is working fine. Where is my mistake?

@moul
Copy link
Owner

moul commented Feb 17, 2016

I think you have the same problem than here: #102

Can you try to update your config file to this and try again:

foo:
  Hostname: hosta
bar:
  # Hostname: hostb            # comment this line
  ResolveCommand: echo hostb   # add this line
  Gateways:
  - foo  

@moul moul added the Bug label Feb 17, 2016
@moul moul self-assigned this Feb 17, 2016
@emanelif
Copy link
Author

thank you for the quick response

INFO[0000] Host hostb                               
INFO[0000]   HostName hostb
INFO[0000]   IdentityFile ~/.ssh/a             
INFO[0000]   Port 22                                    
INFO[0000]   User emanelif                             
INFO[0000]   # Gateways: [hosta]                       
INFO[0000]   # ResolveCommand: echo hostb
INFO[0000] Host hosta                          
INFO[0000]   HostName hosta
INFO[0000]   Port 22                                    
INFO[0000]   User emanelif                             
Permission denied (publickey).
ERRO[0000] Cannot use gateway 'hosta': exit status 255 
FATA[0000] Proxy error: No such available gateway      

also it seems that

hosts:
    hosta:
        Hostname: <ipv4>
        IdentityFile: ~/.ssh/b

does not override

defaults:
      IdentityFile: ~/.ssh/a

i might have the time to look into the sourcecode tonight

@moul
Copy link
Owner

moul commented Feb 18, 2016

It should be fixed with #116, can you get the latest version and give a new try ?

@emanelif
Copy link
Author

looks good. yay 👍

@moul
Copy link
Owner

moul commented Feb 18, 2016

ok cool !

@moul
Copy link
Owner

moul commented Feb 18, 2016

closing this issue, do not hesitate to open it again if needed

@moul moul closed this as completed Feb 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants