Transfer files from k8s or docker shell to other host
Posted on 14 Nov 2023
If you are anytime stuck in a shell where you want to transfer files out of it, and do not have full access such as kubectl or docker exec. Here is the nifty hack: Method 1 (Using ngrok): Run a ngrok tunnel on the target computer ngrok http 5000 Run a simple node program to capture request body const express = require('express') const app = express() const port = 80 var bodyParser = require('body-parser') app.post('/',...