Digital Marketing

#SSH Config File Match Example

The Host directive can contain one pattern or a whitespace-separated list of patterns. 

Each pattern can contain zero or more non-whitespace character or one of the following pattern specifiers:

* - Matches zero or more characters. For example, Host * matches all hosts, while 192.168.8.* matches hosts in the 192.168.8.0/24 subnet.
? - Matches exactly one character. The pattern, Host 10.10.8.? matches all hosts in 10.10.8.[0-9] range.
! - When used at the start of a pattern, it negates the match.

Host * !fm
  ProxyJump fm
Host *
  # Does not use ProxyJump here
Host * !fm means all hosts except fm

Comments

Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership