what is an advantage of smb over ftp This is a topic that many people are looking for. bluevelvetrestaurant.com is a channel providing useful information about learning, life, digital marketing and online courses …. it will help you have an overview and solid multi-faceted knowledge . Today, bluevelvetrestaurant.com would like to introduce to you SSH Tunneling Explained. Following along are instructions in the video below:
“Right tinker nerds. The new year s here and the holidays are over i hope hope you got everything you wished for and i hope what you wish for was tink enough videos. Because if so my dear sweet viewer consider your wish grant so last year. A couple weeks ago.
We talked about ssh. The command line junkies favorite remoting tool. I had mentioned in that video that there s a lot of cool things that you can do with this sh so in this video. We re gonna explore one of them tunneling not the tunneling elon musk s boring company does ssh.
Tunneling is a lot nerdier than that so come on tinka dude. Teach me how the tunnel teach me teach me how that tunnel to understand tunneling you need to know how networking ports work. So. Let s figure that out first imagine a seaport with a bunch of boats seaports organize their docks using something called birth numbers.
If a boat wants to dock. It as assigned a birth number and that birth number tells it where to go so. That it can deliver its packages on a very basic level networking ports are kind of similar depending on the data being delivered networking protocols assigned each shipment a specific port number. And that tells the data where to be delivered some common port.
Numbers you may recognize are port 84. Http or web traffic and port 22 for ssh traffic..
If you re curious here s a nice list of more common networking ports. What s this got to do with ssh tunneling. We ve already established that ssh tunneling is a direct secure connection to another computer. So that you can control it well tunneling allows you to take that ssh connection and smuggle or forward data from one port to another so to test out these tunneling concepts.
I m going to assume that you have an ssh client in one location like work or school or something and then an ssh server in a different location. Say at home. I m going to be using the windows 10 command prompt with openssh installed windows users could use putty. Which is a really good gui for ssh commands.
But to keep things consistent. I m using the command line interface. Because the commands are the on windows mac. And linux.
The first tunnel. We ll try out is called local port forwarding. Let s say you re at work. And you want to remote desktop into your computer at home.
But your work blocks the remote desktop port 3389. What we can do is use an ssh tunnel to forward the blocked port 3389 to a different port number that isn t blocked so on your work computer open up a terminal and type ssh capital l..
For local port. The new port that you want to use the name of the computer that you want to remote into. And then the remote desktop port. That s blocked and then the user name and location of your home ssh server.
When you hit enter it ll prompt you to log into your remote ssh server. Once you ve done that now if you open up the remote desktop application and type in localhost followed by the port number that you chose it should connect what the computer is doing is taking the data. That s sent to the port that we created and forwarding it through our ssh tunnel bypassing the firewall and then when it gets to our computer at home it then uses port 3389 to connect to our remote desktop application finish in the connection from there pretty doggone spectacular right we are just getting started next up dynamic port forwarding. This is probably one of the most asked for use cases.
Let s say that you run across a blocked website. At work because your work has installed a web filter on port 80. By opening up a terminal and typing ssh capital d for dynamic entering in a custom port number. And then your home ssh server credentials you can create what s called a socks proxy and then to get a web browser like chrome to use it you need to go into your settings search for proxy land settings check use a proxy server click advanced and then in the sox option type in localhost and then the custom port number that you chose when you click ok any web address typed into chrome will be sent to your custom port through the ssh tunnel and then retrieved on your home computer using it to surf the web now we re cooking we could stop there.
But there s one more cool tunnel that i want to show you you know how earlier. We remoted into our home computer by forwarding. The remote desktop port. Well what if we wanted to reverse that process to remote into our computer.
At work this is what s known as reverse tunneling to accomplish this on your word. Computer..
Type. Ssh capital r. For remote port forwarding. A random port.
Number. The name of the computer that you want to remote into and since it s this computer. I m just going to type localhost. Then the remote desktop port 3389.
And then your ssh server connection information for your server at home. When you hit enter it ll establish a connection and then when you get home open up the remote desktop client type in localhost and then the port number you chose and when you hit enter you should magically be connected now if for some reason you get an error that doesn t work you may need to check the ssh configuration settings on your home server go into sshd. Underscore. Config and make sure that gateway ports and allow.
Tcp. Forwarding are both set to yes. That s good stuff. Now as a final tip regarding reverse port forwarding.
I ll answer the question you re all probably asking if you have a locally hosted website that you ve made and you want to access it from the internet without opening up any ports on your router you can do that using reverse ssh tunnel. And what s even better is you can use a free service at serbian net to establish a reverse tunnel to your locally hosted web site..
And make it publicly accessible. So basically you re just using a free ssh server that they provided to access your website. I think that s a good place to stop so let me know in the comments. Your favorite ssh tunneling tricks.
Let me know about anything i ve missed. What you liked and when i got wrong. If you have any ideas you can submit or vote for your favorite. Site tinkernutcom.
Idea you can click here to watch more videos like this. And if you got any value out of my show. We d like to give some value. Back please feel free to donate at patreoncom.
Slash inc or not alright that s it for this tutorial for ” ..
Thank you for watching all the articles on the topic SSH Tunneling Explained. All shares of bluevelvetrestaurant.com are very good. We hope you are satisfied with the article. For any questions, please leave a comment below. Hopefully you guys support our website even more.