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.

88 questions
9
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
  • 253
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
6
votes
3 answers

SSH proxy problem

I used to use follows as my proxy server start c:\ssh\plink.exe -N username@mysite.com -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,451
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
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
4
votes
1 answer

PowerShell or plink is eating single quotes inside double quotes

PSVersion 5.1.22621.4391 plink: Release 0.82 I've pored through Properly escape awk command from powershell over plink but one of those programs keeps eating single quotes. Is there any way to run this command through plink? echo "select setting…
RonJohn
  • 403
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…
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
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 mylinuxuser@10.24.0.5 -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
  • 133
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…
3
votes
1 answer

Properly escape awk command from powershell over plink

After (Powershell: Properly escape apostrophes) I still haven't figured out how to get those escapes right when executing a command over plink, coming from powershell. What I am trying to execute at the linux host, is df -k / | tail -1 | awk…
Bowi
  • 1,637
  • 2
  • 20
  • 41
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
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…
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"…
1
2 3 4 5 6