run a web server from your house (part two, connecting via SSH)
previously in the blog of the same title i explained how to serve web pages from your computer connected to a regular cable-modem internet connection (using a netgear wireless router) so that those web pages are accessible from anywhere in the world.
today i figured out the second part of the equation- how to be able to change those web page files from anywhere. again, this has been theoretically possible to me for a long time but i had never tried...
on the local network i tell the router to forward all traffic over port 22 to my machine. this is the port where SSH runs. by opening an SSH shell from outside the network and connecting to the global IP address of the network, i am connected to my machine. from here i can basically do anything including modifying files and shutting the machine down.
another feature of SSH shell is a drag and drop FTP client. using this i just now found some music on my machine running SSH that i was able to copy over to the machine i am on at work and now i am listening to the sweet music...
today i figured out the second part of the equation- how to be able to change those web page files from anywhere. again, this has been theoretically possible to me for a long time but i had never tried...
on the local network i tell the router to forward all traffic over port 22 to my machine. this is the port where SSH runs. by opening an SSH shell from outside the network and connecting to the global IP address of the network, i am connected to my machine. from here i can basically do anything including modifying files and shutting the machine down.
another feature of SSH shell is a drag and drop FTP client. using this i just now found some music on my machine running SSH that i was able to copy over to the machine i am on at work and now i am listening to the sweet music...
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home