Moonrise2473@feddit.it to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish · 1 year agoIndia blocks GitHub, after lobbying done by copyright trollstorrentfreak.comexternal-linkmessage-square112fedilinkarrow-up1512file-text
arrow-up1512external-linkIndia blocks GitHub, after lobbying done by copyright trollstorrentfreak.comMoonrise2473@feddit.it to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.comEnglish · 1 year agomessage-square112fedilinkfile-text
minus-squarejabjoe@feddit.uklinkfedilinkEnglisharrow-up2·1 year 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·1 year agothen I initiate this using stunnel from terminal ?(Ubuntu OS)
minus-squarejabjoe@feddit.uklinkfedilinkEnglisharrow-up1·1 year 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.