-
-
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
Inheritance isn't working #54
Comments
Actually, the inheritance isn't exported to I will try to export inheritances to |
It's ok that it's not exported, but the proxy doesn't seem to be using it either because I don't reach the connection point. Or is it because of the lack of a HostName that I never reaches the proxy? Is there a current way you would recommend to make the sample config work? |
Using the latest commit, you can see the computed host: $ assh -D proxy test-bbb
DEBU[0000] Loading config file '/Users/moul/.ssh/assh.yml'
DEBU[0000] Loading config file '/Users/moul/.ssh/assh.d/hosts.yml'
DEBU[0000] Loading config file '/Users/moul/.ssh/assh.d/test.yml'
INFO[0000] Host test-bbb
INFO[0000] ControlMaster auto
INFO[0000] ControlPath ~/tmp/.ssh/cm/%h-%p-%r.sock
INFO[0000] ControlPersist yes
INFO[0000] HostName 1.2.3.4
INFO[0000] IdentityFile ~/.ssh/id_rsa
INFO[0000] Port 22
INFO[0000] PreferredAuthentications hostbased,publickey,keyboard-interactive,password
INFO[0000] PubkeyAuthentication yes
INFO[0000] ServerAliveCountMax 5
INFO[0000] TCPKeepAlive yes
INFO[0000] User ubuntu
INFO[0000] VisualHostKey yes
DEBU[0000] Writing SSH config file to "/Users/moul/.ssh/config"
DEBU[0000] Trying gateways: [direct]
DEBU[0000] Connecting to 1.2.3.4:22 hosts:
test-aaa:
HostName: 1.2.3.4
IdentityFile: ~/.ssh/id_rsa
test-bbb:
User: ubuntu
Inherits:
- test-aaa
defaults:
ControlMaster: auto
ControlPath: ~/tmp/.ssh/cm/%h-%p-%r.sock
ControlPersist: yes
EscapeChar: ~
GSSAPIKeyExchange: no
Gateways:
- direct
IdentifyFile: ~/.ssh/id_rsa
Port: 22
PreferredAuthentications: hostbased,publickey,keyboard-interactive,password
PubkeyAuthentication: yes
ServerAliveCountMax: 5
ServerAliveInterval: 30
TCPKeepAlive: yes
User: root
VisualHostKey: yes Haha, I just discovered some new ignored keys because of case sensitivity :) However, inheritance seams to works quite well, can you run: |
Hum, I found the issue, the inheritance correctly work in So I will finally need to compute each host before saving the |
I tried using inheritance but I cannot make it work. I even made the file the smallest possible, here's what I have in
~/.ssh/assh.yml
aash build
:and
ssh aloha
results inssh: Could not resolve hostname aloha: nodename nor servname provided, or not known
I checked for syntactical error in the yaml file but I cannot see anything, is this a bug or an error of mine? :(
The text was updated successfully, but these errors were encountered: