Moonrise2473@feddit.it to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish · 1 年前India blocks GitHub, after lobbying done by copyright trollstorrentfreak.comexternal-linkmessage-square108fedilinkarrow-up1504arrow-down131file-text
arrow-up1473arrow-down1external-linkIndia blocks GitHub, after lobbying done by copyright trollstorrentfreak.comMoonrise2473@feddit.it to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish · 1 年前message-square108fedilinkfile-text
minus-squarejabjoe@feddit.uklinkfedilinkEnglisharrow-up2·1 年前In your .ssh/config you want something like: Host my-ssh-ssl Hostname us01.ssh0.net User sshocean-p1r4t2br Password myparrot2 Port 443 ProxyCommand ~/.ssh/https-tunnel.sh %h %p Then you have a ~/.ssh/https-tunnel.sh something like: #!/usr/bin/env bash { printf “GET /HTTP/1.1\r\nHost:$1\r\nUpgrade:websocket\r\n”; cat } | openssl s_client -connect $1:$2 -servername $1 That last bit, -servername is the SNI bit, if you need it. BUT I think that payload might be for port 2083. I think 443 might be just the OpenSSL connect directly.
minus-squarezaknenou@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up1·1 年前then I initiate this using stunnel from terminal ?(Ubuntu OS)
minus-squarejabjoe@feddit.uklinkfedilinkEnglisharrow-up1·1 年前No, stunnel is go othere end. If you doing only the client end, you.don’t need it.
In your .ssh/config you want something like:
Host my-ssh-ssl Hostname us01.ssh0.net User sshocean-p1r4t2br Password myparrot2 Port 443 ProxyCommand ~/.ssh/https-tunnel.sh %h %p
Then you have a ~/.ssh/https-tunnel.sh something like:
#!/usr/bin/env bash { printf “GET /HTTP/1.1\r\nHost:$1\r\nUpgrade:websocket\r\n”; cat } | openssl s_client -connect $1:$2 -servername $1
That last bit, -servername is the SNI bit, if you need it. BUT I think that payload might be for port 2083. I think 443 might be just the OpenSSL connect directly.
then I initiate this using stunnel from terminal ?(Ubuntu OS)
No, stunnel is go othere end. If you doing only the client end, you.don’t need it.