Moonrise2473@feddit.it to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish · 11 months agoIndia blocks GitHub, after lobbying done by copyright trollstorrentfreak.comexternal-linkmessage-square96fedilinkarrow-up1491arrow-down129file-text
arrow-up1462arrow-down1external-linkIndia blocks GitHub, after lobbying done by copyright trollstorrentfreak.comMoonrise2473@feddit.it to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish · 11 months agomessage-square96fedilinkfile-text
minus-squarejabjoe@feddit.uklinkfedilinkEnglisharrow-up2·11 months agoIn 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·11 months agothen I initiate this using stunnel from terminal ?(Ubuntu OS)
minus-squarejabjoe@feddit.uklinkfedilinkEnglisharrow-up1·11 months agoNo, 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.