![]() Wouldn’t it be nice if you could simply add a port forwarding rules just like with Putty? Putty-like port-forwarding Occasionally you may not know in advance which ports to forward, and establishing a new session might not be convenient. For example: ssh -i ~/.ssh/remoteuser -L 8080:server2:8080 Throw in the -N flag and you don’t even open your login shell! That’s a very convenient way to enable port forwarding. ![]() You can specify either the -L or -R flag (and -D for completely dynamic port-forwarding using SOCKS - which is not in scope of this article) when establishing a SSH session to a remote host, specifying how ports should be forwarded. Although no research has been conducted to find out when exactly dynamic SSH port forwarding was added to SSH clients it can safely be assumed the feature has been around for a while. The contents of this post was tested with a wide range of SSH clients, from Oracle Linux 8.6 to Debian 11, Ubuntu 22.04, and Windows 10 22H2. A similar feature exists for SSH clients on MacOS and Linux, and even on Windows's command-line SSH client as it's based on OpenSSH, too. after the session has already been established. One of the nice things in Putty is its ability to add port forwarding rules on the fly, e.g. Putty is still one of the most popular tools available to perform remote administration on Windows, despite the fact that recent Windows versions do provide an SSH client. ![]() For a very long time Windows did not provide a SSH client out of the box leading to a pleathora of 3rd party clients. As a Linux or Mac user you benefit from a very useful, built-in terminal and SSH client implementation that’s mostly identical across all Unix-like systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |