If you just want to get the dump file of the server, it was convenient to build an http server

Prepared on the server side

simplehttpserver8085.py


import SimpleHTTPServer
import SocketServer

PORT = 8085
IP = '127.0.0.1'

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer((IP, PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()

Start-up


nohup python simplehttpserver8085.py &

Client settings

$HOME.ssh/config


Host dump01
    #abridgement
Host dump01-8085
    ProxyCommand ssh -NL 8085:localhost:8085 dump01

Connect


ssh dump01-8085

You can browse the files on the server by connecting to http: // localhost: 8085 / with a browser.

Recommended Posts

If you just want to get the dump file of the server, it was convenient to build an http server
If you want to put an argument in the closure function and execute it later
Python Note: When you want to know the attributes of an object
When you want to change the HTTP headers of Flask's test client
The file edited with vim was readonly but I want to save it
I want to get the path of the directory where the running file is stored.
If you don't know how to draw the graph you want with matplotlib, it is convenient to look at the gallery.
I checked Pandas's Categorical relationship-it's convenient if you get used to it (I think)
A convenient function memo to use when you want to enter the debugger if an error occurs when running a Python script.
What to do if you have corrected the mistake in the IP address of the zone file but cannot connect to the DNS server
Django returns the contents of the file as an HTTP response
I want to get the operation information of yahoo route
If you want your colleagues to use the same language
Keras I want to get the output of any layer !!
I want to know the legend of the IT technology world
[Django] What to do if the model you want to create has a large number of fields
[Django] Carefully explain the escape route if you really want to use the table of another application
I want to get the name of the function / method being executed
Don't write Python if you want to speed it up with Python
If you remove the list to be looped, you will get terrible.
When you want to save the result of the callback function somewhere
[TensorFlow] If you want to run TensorBoard, install it with pip
[For beginners] I want to get the index of an element that satisfies a certain conditional expression
If you want to switch the execution user in the middle of a Fabric task, settings context manager
Get the attributes of an object
If you want a singleton in python, think of the module as a singleton
I don't want to admit it ... The dynamical representation of Neural Networks
If you want to include awsebcli with CircleCI, specify the python version
What to do if you get lost in file reference with FileNotFoundError
[Python] If you want to draw a scatter plot of multiple clusters
If you want to get multiple statistics with groupby in pandas v1
What to do if you get an error when trying to load mnist
If you want to count words in Python, it's convenient to use Counter.
Isn't Qt the strongest library if you want to easily output SVG?
I want to leave an arbitrary command in the command history of Shell
Get the song name from the title of the video you tried to sing
What to do if you get an error when installing Dlib (Ubuntu)
The tree.plot_tree of scikit-learn was very easy and convenient, so I tried to summarize how to use it easily.
How to save the feature point information of an image in a file and use it for matching
[Python3] Code that can be used when you want to change the extension of an image at once