Using the accepted answer you'll enter the proxy server as the host name of the session. Using my solution, you need to enter the final host name (the protected server you want to log in to) in the session settings. Please note that the approach is a little different from the accepted answer. Navigate to the Connection > SSH > Tunnels. In the left sidebar under the Category options. Add hostname of the SSH server you want to access remotely. Make sure the connection type is set to SSH. The '43022:localhost:22' tells ssh that connection requests to port 43022 on the local computer should be forwarded to port 22 on the remote computer. The -R (reverse) option tells ssh that new SSH sessions must be created on the remote computer. In the Session windows, enter the hostname or IP address and port number of the destination SSH server. On the remote computer, we use the following command. Then on the right pane, enter the source port such as 1080. (I think you need a full path to plink if the program folder is not in your PATH) Start the PuTTY application on your desktop. Open PuTTY SSH client, select SSH > Tunnels on the left pane. I try create a service: c:\> sc create sshtunnel binpath'c:\putty.exe -load sshtunnel SC CreateService SUCCESS. Keep the shell command in Windows service seems to be the only solution. Using this solution I can easily change the settings of the proxy server in one place. I want to ssh tunnel session become available when my computer start without logon to any user session. You can then save this proxy configuration as PuTTY stored session. For details, see OpenSSH Prox圜ommand equivalent in PuTTY. This way, you can implement an SSH tunnel. ![]() The reason I did it this way, is that I need a specific proxy for a lot of sessions. In PuTTY, you can use plink for 'local proxy command'. Replace «session name» by the name of the Putty session you want to use as a proxy. You also have a local and remote port of the tunnel swapped (You have 2 and 3 labeled other way around.) Check PuTTY event log for details (PuTTY console window title and select 'Event log' ). In the options under Connection > Proxy you select 'Local' as the proxy type and as local proxy command you enter plink "«session name»" -agent -nc %host:%port. Connection > SSH > Protocol options > Dont start a shell or command at all. ![]() In addition to the accepted answer, which uses SSH on the remote side as a proxy, you can also use plink (you can get it on the offical Putty site) as a local proxy. I know it's an old question, but I think it's still useful to add an alternative.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |