(Note: This is a follow up to my SSH thread but this is about Tunneling and SSH and so I thought it merited it's own Thread.)
From the Windows Command line...
WinPCpro-L-1 at Location 1 connects over the internet to a Ubuntu Server at Location 2
with...
Putty.exe username@xxx.xx.xx.xxx -P aaaaa -i .\username.ppk
And after entering the password...
WinPCpro-L-1 is connected to the Ubuntu Server and can remotely enter commands.
(I've actually got this working but I want to know what is going on under the hood.)
Question 1:
After the connection is established the commends entered on the PC's keyboard will ultimately be sent to... the Ubuntu Server at xxx.xx.xx.xxx:aaaaa -- that is Public IP Address xxx.xx.xx.xxx Port aaaaa
So this means the Linux Server is "listening" for SSH traffic on Port aaaaa
Right?
Question 2:
Does the Windows Command Line entry
Putty.exe username@xxx.xx.xx.xxx -P aaaaa -i .\username.ppk
also setup a "tunnel" ?
Question 3:
The term "Tunnel" confuses me as it makes me think of some kind of magic hardwired permanent connection... which of course is impossible over a packet switching network like the internet...
So the "tunnel" is virtual... as seen between the TCP/IP Model's "Application" Layers...
Right so for?
Question 4:
And before "Tunneling" can begin the two computers must communicate with each other and setup/agree to things... like maybe what "Tunneling" protocol is going to be used, etc...
Right so for?
Question 5:
So now the SSH "connection" has been established between the 2 computers
And the "Tunneling" protocol has been agreed to by the 2 computers...
Or does this happen differently?
Question 6:
So after the two computers agree to talk and "how" they are going to talk...
- the raw data from the PC Application gets processed by the "tunneling" software...
- and then sent to the SSH client for further processing and forwarding down to...
- the TCP/IP Model and then to the
- Transport/TCP Layer and then to the
- Internet/IP Layer and then to the Data Link Layer and then
- out the NIC door to the network...
Or does this happen differently?
Sorry for all the confusion but I've dived in to learning this stuff now and really appreciate anyone helping me find my way.
Thanks for any help.
PS-1 Hopefully I'm in the right font size so I don't get in trouble again
PS-2 , I've Googled and watched YouTube videos on all this but I'm trying to dig a little deeper into the events and actual sequence of events.
Bookmarks