I don't really have a generic code issue. I'm here to ask a newbie TCP communication question - I need it in order to continue my PowerShell project.
According to what I already know, during the ssh information exchange, only the ssh server is port forwarded. Let's say, that it works on port 22 and only ssh server is forwarded on that port. Well then how does ssh server respond to the client?
The router only blocks inbound connections without a specific rule. A client send a packet to a ssh server (router doesn't block the outbound request), then ssh server claims it (server doesn't block the inbound connection, because of the previous forward), processes the command, and sends back the output. But how does that happen? The client blocks all the inbound requests, because port 22 is not port forwarded.
It would be really great if someone could answer this question, sorry if it's not well-explained, but I tried my best. Once again this is a newbie question so please notice that I don't have the vocabulary range for that topic.
0 Answers