Questions tagged [plink]

Plink (PuTTY link) is a command-line connection tool similar to UNIX ssh.

Plink (PuTTY link) is a command-line connection tool similar to UNIX ssh. It is mostly used for automated operations, such as making CVS access a repository on a remote server.

78 questions
8
votes
3 answers

Is there a way to use plink with rsync on Windows?

I use rsync to sync files between a local directory and a remote host. I also use plink to automate my SSH passphase entry. What I can't figure out is how to use rsync with plink. This is what I think the syntax should be: rsync -args --rsh="plink…
Corey
  • 243
  • 2
  • 10
6
votes
1 answer

How can you run `plink` to copy files?

A command line putty's version plink. Copying files from Windows system to Linux system is possible using plink, but how? I know the same can be achieved through pscp, but I want to achieve this using plink because of some reason. How can you copy…
snoop
  • 163
  • 1
  • 1
  • 7
6
votes
3 answers

SSH proxy problem

I used to use follows as my proxy server start c:\ssh\plink.exe -N [email protected] -pw mypasswd -P 22 -D localhost:8003 Now my company decides to block 22 port and I cannot access the 22 port of my site host directly.But there's one machine…
SpawnST
  • 2,351
  • 5
  • 27
  • 38
4
votes
0 answers

SSH tunnel over HTTP(S) proxy (Reverse RDP)

I've been trying to accomplish this scenario: HOST_WORK is behind non-transparent squid_proxy (its not, but to get outside you need to use it, all other packets are black-holed on gateway not to mention 0% incoming) where we have SSL so that means…
cat9
  • 61
  • 1
  • 4
4
votes
3 answers

Execute local script requiring arguments on Linux via plink

Is it possible to execute (from windows) a local script with arguments on a remote linux system? Here's what I got: plink 1.2.3.4 -l root -pw mypassword -m hello.sh Is there a way to do this same thing, but able to give input parameters to…
c_maker
  • 141
  • 1
  • 4
3
votes
0 answers

Can't execute remote command using PuTTY/ Plink over SSH

Currently I am trying to run bat files call_putty.bat and call_plink.bat, but it isn't excuting the input commands in -m E:\CREATE_ONT.txt When I remove -m E:\CREATE_ONT.txt, the SSH session is established successfully . Here is the script inside 2…
Minh Nguyen
  • 41
  • 1
  • 3
3
votes
1 answer

How to run bash script on a Linux host, from Windows using plink

I'm trying to run a simple bat file on Windows that will run a bash script on a remote Linux machine. The bash script is located on the Linux machine. For example: I'm trying to run this command in a batch file on Windows: plink.exe -pw
user128877
  • 131
  • 1
  • 1
  • 2
3
votes
2 answers

What is the priority between ssh key types on a ssh connection?

While developing a ssh tool that connects to a sever I have seen the following: In Windows(with plink), it uses the ssh-ed25519 server key type to make the handshake and confirm it's fingerprint. In the other hand, in Ubuntu after a ssh command it…
Roger Coll
  • 35
  • 3
3
votes
1 answer

Tunneling Using Plink: Command Line Option for "Local ports accept connections from other hosts"

I am trying to forward port from A:1234 to B:5678. Now, C will connect to A:1234 and will get forwarded to B:5678. I could get this to work using PuTTY using this configuration: PuTTY Tunnels Configuration screenshot Now, I am trying to do the same…
unni
2
votes
4 answers

Plink, backspace and bell

I'm connecting to a remote SSH linux server from a windows host using plink. This works correctly, I setup a private/public key and can authenticate without any problem. Thing is, when using plink once I'm connected the backspace key produces odd…
Leo
  • 121
  • 2
2
votes
1 answer

How to add a string to a remote file with plink

I'm writing a new backup script in PowerShell to back up our Azure SQL. After the backup, I need to write into a logfile on a remote Linux server. I thought about using plink (the PuTTY command line tool). More or less like this: plink user@server…
platzhersh
  • 123
  • 6
2
votes
1 answer

Plink using PuTTY colour scheme

I'm trying to open plink from a *.bat on Windows 10, with the colour scheme defined from an existing session in PuTTY, and while the commands are correctly executing, and the right results displayed, the colour scheme is missing: Start /D "C:\PuTTY"…
Lolo Irie
  • 23
  • 4
2
votes
1 answer

Tunneling using Plink to localhost on Windows

Currently im using following command (in cmd) to tunnel using PuTTY, and it's working fine: putty.exe [email protected] -P 22 -L 10.24.0.200:2022:localhost:22 10.24.0.5 = my application server (CentOS 7) 10.24.0.200 = my workstation (Windows…
Teddybugs
  • 123
  • 1
  • 6
2
votes
1 answer

command line plink remote target capture traffic via jumphost

I am trying to capture remote host traffic via jumphost from a Windows machine and display in Wireshark. When PUTTY GUI is used and configured as below Created and saved SSH session (bastion-host) for the jumphost Connection --> Data -->…
rawat
  • 43
  • 1
  • 6
2
votes
0 answers

Why is an SSH socks5 proxy performing better than a normal socks5 proxy?

I've been trying to setup a proxy tunnel for gaming for the past month and have encountered (To me) a very strange issue. Currently I'm using a socksifier to redirect/edit the connect() command on a game's socket to get it to route through our…
VirtualSmile
  • 61
  • 1
  • 4
1
2 3 4 5 6