Hallo,
ich habe in ~/.ssh/config global ProxyCommand gesetzt, möchte aber für einen Host keinen Proxy verwenden. Wie hann hier die Option aufgehoben werden?
ssh: globale option ProxyCommand für einen Host deaktivieren
-
- Beiträge: 3293
- Registriert: 29.06.2013 17:32:10
- Lizenz eigener Beiträge: GNU General Public License
-
Kontaktdaten:
ssh: globale option ProxyCommand für einen Host deaktivieren
(=_=)
Unsere neue Mutter: https://www.nvidia.com/de-de/data-center/a100/
Unsere neue Mutter: https://www.nvidia.com/de-de/data-center/a100/
Re: ssh: globale option ProxyCommand für einen Host deaktivi
du kannst in der config negieren:
Führt den ProxyCommand für alle Hosts außer foo.bar.bla aus.
Code: Alles auswählen
Host !foo.bar.bla, *
ProxyCommand ssh jumper.foo.bar.bla nc -w 1 %h %p
-
- Beiträge: 3293
- Registriert: 29.06.2013 17:32:10
- Lizenz eigener Beiträge: GNU General Public License
-
Kontaktdaten:
Re: ssh: globale option ProxyCommand für einen Host deaktivi
Das funktioniert bei mir irgendwie nicht. Genau wie ein ProxyCommand none, was laut Manpage funktionieren soll.
Meine config schaut z.Z. so aus:
Zum Host router soll ohne ProxyCommand verbunden werden.
Meine config schaut z.Z. so aus:
Code: Alles auswählen
ProxyCommand command
Host router
ProxyCommand none
[...]
Host foo
[...]
(=_=)
Unsere neue Mutter: https://www.nvidia.com/de-de/data-center/a100/
Unsere neue Mutter: https://www.nvidia.com/de-de/data-center/a100/
Re: ssh: globale option ProxyCommand für einen Host deaktivi
mhh, probiers mal so:
Oder was auch gehen sollte glaube ich:
afaik bricht er ab sobald er was gematches gefunden hat. dH da ProxyCommand überall matched wird das verwendet da Host router später ist... Bin mir jetzt aber nicht wirklich sicher ob es tatsächlich so ist...
Code: Alles auswählen
Host !router,*:
ProxyCommand ...
Code: Alles auswählen
Host router
ProxyCommand none
Host *
ProxyCommand ...