popeyelau / wiki

📒Wiki for many useful notes, source, commands and snippets.
2 stars 0 forks source link

备忘 #42

Open popeyelau opened 11 months ago

popeyelau commented 11 months ago
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.cloudflare.cloudflared</string>
        <key>ProgramArguments</key>
        <array>
            <string>/opt/homebrew/bin/cloudflared</string>
            <string>--protocol</string>
            <string>http2</string>
            <string>tunnel</string>
            <string>run</string>
            <string>--token</string>
            <string>TOKEN VALUE </string>
        </array>
$ sudo launchctl load /Library/LaunchDaemons/com.cloudflare.cloudflared.plist
$ sudo launchctl start com.cloudflare.cloudflared

https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/configure-tunnels/remote-management/

popeyelau commented 10 months ago

Remote Desktop over SSH with macOS

Host MacStudio HostName 192.168.xx.xx User Popeye Port 22 ProxyCommand nc -v -x 127.0.0.1:8889 %h %p LocalForward 6900 localhost:5900 ControlPath ~/.ssh/MacStudio.ctl


- 设置别名
```shell
# 连接
alias ssh-up='ssh -fNTM MacStudio'
# 状态
alias ssh-status='ssh -TO check MacStudio'
# 退出
alias ssh-down='ssh -TO exit MacStudio'
Reference
-f
Run in the background before command execution.
-N
Don’t execute any commands
-T
Disable pseudo-tty allocation. I don’t know what this means.
-S socketname
Use a control socket with name socketname
-M
Put control socket in master mode
-O check, exit
Control command
popeyelau commented 9 months ago

FRP

popeyelau commented 1 month ago