Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support for Match and Exec in the config file? #81

jarrah31 started this conversation in Ideas
Discussion options

My config file extensively uses the following to swap between using local IPs when at home and remote URLs when travelling.

Match host z2m1 exec "ifconfig -a inet 2>/dev/null | awk '/inet /{print 2ドル}' | grep -Fq '192.168.199.'"
 HostName 192.168.199.58
 Port 22
 User jarrah
Match host z2m1
 HostName ssh.mydomain.uk/z2m1
 ProxyCommand /opt/homebrew/bin/cloudflared access ssh --hostname %h
 User jarrah

Unfortunately these hosts aren't detected when I run lazyssh so I wondered if it's possible to support this in the future please?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /