Hello,

I pulled the ssh lense out of git and am trying to use it to add a Host definition, but am facing a few challenges. Mostly a lack of understanding on my end. Please allow me to briefly demonstrate my lack of understanding.


Lets say my ideal /etc/ssh/ssh_config looks like this


Host A
        GSSAPIAuthentication yes
Host B
        GSSAPIAuthentication yes
        ForwardX11 yes
Host *
        ForwardX11Trusted yes



And my current one looks like:


Host A
        GSSAPIAuthentication yes
Host *
        ForwardX11Trusted yes



I haven't been able to find a good way to locate 'Host *' and put 'Host B' above it.
$ augtool ls /files/etc/ssh/ssh_config/
Host[1]/ = A
Host[2]/ = *

I've tried:

ls /files/etc/ssh/ssh_config[ Host = '*' ]
ls /files/etc/ssh/*[ Host = '*' ]

But, while strange, my main problem is I have no idea how to even add a new host definition.

augtool ins B before /files/etc/ssh/ssh_config/Host[2]

Just doesn't work.

I'm facing three problems:
-Not much of a clue what I'm doing in Augeas
-I can't seem to actually add a Host definition
-I can't seem to find another Host definition to put my entry above


I'm doing something wrong, this much is clear to me. Might I ask a little help?

Pat

_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to