Questions tagged [plink]

Plink (PuTTY Link) is a command-line interface to the PuTTY back ends, written and maintained primarily by Simon Tatham. It is a connection tool similar to UNIX ssh. It is mostly used for automated operations.

Plink (PuTTY Link) is a command-line interface to the PuTTY back ends, written and maintained primarily by Simon Tatham. It is a connection tool similar to UNIX . It is mostly used for automated operations.

Useful Links

Do not use tag for question about a genetic association analysis toolkit written by Shaun Purcell at Harvard/MGH, which is largely used on genetic sequence data.

427 questions
4
votes
3 answers

mvn exec:exec with '<' in commandlineArgs

I need to run a command that contains '<' in it. I can run it from the command line, but it throws error when I put it into mvn exec. The command: c:\apps\putty\plink.exe myuser@myhost -T -ssh -2 $SHELL /dev/stdin 'a b c d' <…
BTakacs
  • 2,397
  • 3
  • 24
  • 26
4
votes
1 answer

After the upgrade to TortoiseGit v1.8.15.0 and Git v2.5.0 hosts cannot be found

I've just updated my TortoiseGit from v1.7.* to v1.8.15.0 and Git from 1.* to v2.5.0.windows.1. Now trying to perform a remote operation like pull I'm getting errors: git.exe pull -v --progress "origin" Unable to open connection: Host does not…
automatix
  • 14,018
  • 26
  • 105
  • 230
4
votes
3 answers

How to use TortoiseHg from command line without PuTTY (Pageant)

Earlier I used Mercurial command line installation and it worked fine for me with default ssh client and keys location in ~/.ssh. On my new laptop I installed TortoiseHg. Now any remote request (like hg pull, or hg incoming) generates PuTTY Fatal…
radistao
  • 14,889
  • 11
  • 66
  • 92
4
votes
1 answer

send commands to serial port using putty and .bat file

I would like to send following AT commands automatically by creating a .bat file using PuTTy. AT ok AT+CPIN = 1234 ok I can do it manually so far. But I would like to do it automatically by executing the above commands by just clicking on a batch…
user3812823
  • 41
  • 1
  • 1
  • 3
4
votes
3 answers

Plink from Windows service cannot find Pageant

I have one windows service which will use plink.exe for SSH connection and I found that Plink cannot find the running Pageant. Here is the steps I have done so far. Install Windows service to run as particular user Before starting Windows service,…
Soe Moe
  • 3,428
  • 1
  • 23
  • 32
3
votes
1 answer

How to exit Plink (command line PuTTY) after sending command from PowerShell script?

I am communicating with a sensor via serial (COM port) connection. The sensor outputs data only when receiving a specific input string. I want to write a script to repeatedly send the input and save the outputs to a text file. I am using Plink as…
yjaco
  • 31
  • 1
3
votes
1 answer

Opening a plink window from VB.NET application without showing the black ugly plink window

I am looking to call plink from a vb.net application in the background (without showing the black plink cmd screen) is it possible?
BKVB
  • 35
  • 1
  • 4
3
votes
1 answer

How to disable GSSAPI authentication using PuTTY Plink?

I'm using plink.exe (from PuTTY) to run shell commands over SSH. Trying to authenticate via GSSAPI makes it slow ("freezes" ~ 7 sec while trying). Therefore I want to disable GGSSAPI authentication. Under PuTTY I can disable GSSAPI authentication…
mseele
  • 256
  • 1
  • 2
  • 11
3
votes
1 answer

Passing shell script file

I have a linux shell script file which collects various data from linux server. (Services, Process, FreeSpace etc.). From windows to collect the data we are using Plink to connect to linux Boxes and run the shell script plink root@servername -pw…
Rohit Srivastava
  • 278
  • 4
  • 17
3
votes
1 answer

Can I tee unbuffered program output in Powershell?

I'm trying to use Putty's plink.exe as part of a Powershell script, and am having trouble teeing the output. Some of the commands invoke an interactive response (eg: entering password). Specifically, I'm testing against an Isilon. Example…
3
votes
1 answer

How to ssh hop through multiple hosts from a Windows batch file

How write a Windows batch file to be run from HostA for those connections below? SSH (with local port forwarding): HostA => HostB => HostC. HostA – HostB must use plink.exe (HostA runs Windows) HostB – HostC must use ssh (HostB runs Linux). I try…
user3013157
  • 109
  • 1
  • 9
3
votes
1 answer

Using Putty to SSH ignoring all warnings in Perl

I'm writing a Perl script to SSH into remote linux and maci machines from a windows. For that I'm running plink (putty link) command using qx. The problem is that when I try to run the plink command it gives a prompt The server's host key is not…
him
  • 487
  • 3
  • 12
3
votes
0 answers

Can't escape pipe character in windows CMD when echoing?

I am trying to pipe some commands via echo to plink over serial comport to a linux device. Most short commands work, but when I combined with a linux command that needs a pipe character "|" it breaks. Which makes sense, since cmd or echo thinks…
mwcmwc
  • 39
  • 3
3
votes
1 answer

How to accept user input in bash file that is executed using Plink?

I have a simple bash script: echo "Hello!" read varname echo "you entered " $varname So it outputs "Hello!" and then accepts user input and outputs text that was entered. The script can be successfully executed using PuTTY. Also I can run the…
Sergey Kravchenko
  • 957
  • 1
  • 8
  • 21
3
votes
1 answer

Where does Plink command look out for the private keys?

I am trying to connect a Linux machine from Windows using passwordless SSH connection. I generated the keys using PuTTYgen in the Windows machine and copied the keys to the Linux machine appropriately. From the command prompt of windows I could…
auro
  • 31
  • 1
  • 3
1 2
3
28 29