mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 04:09:47 +01:00
e8dbc35613
This commit adds support for forwarding paths rather than just addresses/ports. It also adds options for specifying remote and dynamic forwards.
29 lines
583 B
Text
29 lines
583 B
Text
|
|
|
|
Host * !github.com
|
|
Port 516
|
|
IdentityFile file1
|
|
IdentityFile file2
|
|
|
|
Host abc
|
|
ProxyJump jump-host
|
|
|
|
Host xyz
|
|
ServerAliveInterval 60
|
|
IdentityFile file
|
|
LocalForward [localhost]:8080 [10.0.0.1]:80
|
|
RemoteForward [localhost]:8081 [10.0.0.2]:80
|
|
RemoteForward /run/user/1000/gnupg/S.gpg-agent.extra /run/user/1000/gnupg/S.gpg-agent
|
|
DynamicForward [localhost]:2839
|
|
|
|
Host *
|
|
ForwardAgent no
|
|
Compression no
|
|
ServerAliveInterval 0
|
|
HashKnownHosts no
|
|
UserKnownHostsFile ~/.ssh/known_hosts
|
|
ControlMaster no
|
|
ControlPath ~/.ssh/master-%r@%n:%p
|
|
ControlPersist no
|
|
|
|
|