sshconf
sshconf copied to clipboard
SSH configuration reading and modification library in Python
fix #19
~/.ssh/config ```bash ... include ~/.ssh/work/config ``` `_resolve_includes` return `/home/xxx/~/.ssh/work/config` It should be `/home/xxx/.ssh/work/config`
result ssh config file. we will have multi "RemoteForward" property ```bash Host 192.168.110.4 ProxyCommand nc -X 5 -x 172.26.176.1:10832 %h %p RemoteForward localhost:3322 localhost:22 RemoteForward localhost:10809 172.26.176.1:10809 ```
I have a config file similar to this ``` Host host1 ... Host host2 ... Host * ... ``` I want to add host3. But if host3 is added at...
Same issue as #8 ``` WARNING: Requested sshconf==0.2.4 from https://files.pythonhosted.org/packages/fb/c6/57b4566e331a4950d63060b9b31f874cda2539c9de0907385c6006f9df64/sshconf-0.2.4.tar.gz#sha256=457e8bf13bdd1229a3d7d06b4a8487ded5cdedeaf11879decf87e25eeb166b08 (from -r /tmp/tmpo_cbij74 (line 120)), but installing version 0.1.0 | WARNING: Discarding https://files.pythonhosted.org/packages/fb/c6/57b4566e331a4950d63060b9b31f874cda2539c9de0907385c6006f9df64/sshconf-0.2.4.tar.gz#sha256=457e8bf13bdd1229a3d7d06b4a8487ded5cdedeaf11879decf87e25eeb166b08 (from https://pypi.org/simple/sshconf/). Requested sshconf==0.2.4 from https://files.pythonhosted.org/packages/fb/c6/57b4566e331a4950d63060b9b31f874cda2539c9de0907385c6006f9df64/sshconf-0.2.4.tar.gz#sha256=457e8bf13bdd1229a3d7d06b4a8487ded5cdedeaf11879decf87e25eeb166b08 (from...
with `Include filename` you can separate your ssh configuration over several files, but sshconf is unfortunately not able to parse them