Plink.exe: Difference between revisions

From RCATs
(Created page with "Category:Tools Category:Tunneling & Port Forwarding ==Description== PuTTY Link (Plink) is a command-line connection tool for Windows that is used for connecting to a remote computer using the Telnet and Secure Shell (SSH) network protocols. It is part of the PuTTY suite of tools, which also includes the PuTTY terminal emulator and the PuTTY Configuration Utility. Plink is commonly used to automate routine tasks, such as executing shell commands on a remote server...")
 
Line 9: Line 9:
plink -D 9050 ubuntu@xx.xx.xx.xx
plink -D 9050 ubuntu@xx.xx.xx.xx
</syntaxhighlight>
</syntaxhighlight>
===Remote Port Fowarding==
===Remote Port Forwarding===
<syntaxhighlight lang="powershell">
<syntaxhighlight lang="powershell">
# Syntax
# Syntax

Revision as of 13:27, 30 January 2023

Description

PuTTY Link (Plink) is a command-line connection tool for Windows that is used for connecting to a remote computer using the Telnet and Secure Shell (SSH) network protocols. It is part of the PuTTY suite of tools, which also includes the PuTTY terminal emulator and the PuTTY Configuration Utility. Plink is commonly used to automate routine tasks, such as executing shell commands on a remote server, forwarding TCP/IP ports, and setting up secure tunnels for other applications to use. Plink is often used in conjunction with other tools, such as batch files, scripts, and automation frameworks, to simplify complex network-related tasks.

Commands

Dynamic SOCKS Proxy

#create a dynamic (SOCKS) proxy on port 9050, and then use that proxy to connect to an Ubuntu server at IP address 10.129.15.50 via an SSH connection. The "-D" option specifies the local port to use for the dynamic SOCKS proxy, in this case port 9050
plink -D 9050 ubuntu@xx.xx.xx.xx

Remote Port Forwarding

# Syntax
plink -l <Our_valid_username> -pw <valid_password> [-p <port>] -R <port_ in_our_host>:<next_ip>:<final_port> <your_ip>

#example
plink.exe -l root -pw password [-p 2222] -R 9090:127.0.0.1:9090 10.11.0.4