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
2
votes
0 answers

git pull - cannot spawn plink invalid argument

I had been using tortoisegit for all my git commands. I decided I should learn how to do it manually. So I am using the terminal inside IntelliJ Idea for my git commands now. I was getting some weird error when doing a pull. So I updated my git…
dmikester1
  • 1,374
  • 11
  • 55
  • 113
2
votes
2 answers

How to execute multiple commands sequentially on device in Windows batch file using PuTTY/Plink?

I am trying to configure a device over SSH in a automated way using a .bat script. In the snippet below I am generating a file with the required commands in the correct order, afterwards I execute/read the file into the SSH connection using plink.…
tomwassing
  • 925
  • 1
  • 10
  • 30
2
votes
3 answers

plink's host key is not cached in the registry when run from perl on IIS/Windows

I'm trying to start a perl script on another server from a web page and I'm having problems with plink: it doesn't seem to remember the host key when run from the IUSR_ user. I managed to reduce the problem this: print…
Guillaume Filion
  • 480
  • 2
  • 6
  • 13
2
votes
2 answers

Getting "Server unexpectedly closed network connection" after executing a remote command with Plink

I am using Plink to execute remote command: When using remote command (text file) error occurs: FATAL ERROR: Server unexpectedly closed network connection test.bat "C:\Program Files (x86)\PuTTY\plink.exe" XX.XX.XX.XX -l userID -pw password -m…
KBH
  • 31
  • 1
  • 3
2
votes
1 answer

Executing command using Plink does not work, but does in PuTTY

I am trying to create a PowerShell script to SSH into a Raspberry Pi and perform some commands. I am using Plink to SSH into the Pi over command line. However I have to SSH into the Pi user which runs in lshell. I can PuTTY into the Pi with zero…
Hunter
  • 49
  • 1
  • 7
2
votes
1 answer

Plink command results not being saved to local text file

I am calling a remote ssh through PuTTY's Plink functionality - I am able to connect and run my commands but not able to store Output into another text file - my script is as: plink ssh_hostname -m "directory\till\inputCommand.txt" -l username -pw…
dynamicJos
  • 129
  • 3
  • 14
2
votes
1 answer

Jenkins Git Plugin fails when job name contains "plink"?

For some reason, I am using complex job names in Jenkins and parse some job parameters right from the job name. While the job names tend to become a bit lengthy, it used to work great. All jobs fetch a repo with some scripts to be executed via…
flaschbier
  • 3,910
  • 2
  • 24
  • 36
2
votes
1 answer

Access denied while redirecting output from plink to local file

I am trying to redirect my plink command file output (That executes a script on UNIX server) to another file. But I am getting Access Denied issue while redirecting output. Batch file: cd "C:\Program Files\PuTTY" plink -t…
Tushar Sharma
  • 2,839
  • 1
  • 16
  • 38
2
votes
2 answers

How do I change the command sent by TRAMP in Emacs when using plink on Windows?

I have the following in my .emacs: (require 'tramp) (setq tramp-default-method "plink") When I run C-x C-f /plink:some_session:/ in Emacs where some_session is a defined session in PuTTY (which has all information saved such as location of private…
vab2048
  • 1,065
  • 8
  • 21
2
votes
2 answers

Can't type password (or anything else) into plink with svn+ssh

I've been using SVN and Windows for a while now, but recently I tried to get it working on a new machine. I have a svn+ssh:// repository that I need to access but I am unable to because, as I understand it, plink is not hooked up to the console…
2
votes
2 answers

Plink returning unwanted characters via C#

I am getting unwanted characters before and after my results when using Plink via C#: Command: ls -l */informatica/tgtdynamicparams*.out | grep vaulttest| grep 'Sep 1'|awk '{print $9}' | sort Linux…
Eric Hansen
  • 185
  • 1
  • 10
2
votes
2 answers

new comint mod in emacs for plink (putty): Symbol's function definition is void

i want to use a new comint mode for plink(putty), i put the code in init.el, but if M-x run-plink, i got below error: let*: Symbol's function definition is void: comint-check-proc ;; path (defvar plink-file-path "C:/Programme/Putty/plink.exe" …
Felix Liu
  • 25
  • 6
2
votes
1 answer

Sending remote commands with Plink

I am trying to automate sending remote commands/getting responses to a linux host with plink/putty through a serial connection. I can successfully establish the connection: plink.exe -load "COM4" But how can I add my commands to the above?What I am…
user3255590
  • 29
  • 1
  • 4
2
votes
2 answers

Error message: plink: the -pw option can only be used with the SSH protocol

I'm using the plink command to log in with SSH protocol. plink -l UserName -pw password -t ServerAddress but in one of our workstations I get the following error message: plink: the -pw option can only be used with the SSH protocol I guess that…
Sidney Levy
  • 155
  • 2
  • 9
2
votes
1 answer

Configure TortoiseGitPlink to autoload key for a specific URL

I am using GoCD for continuous delivery and have a Material that uses a git repository as the source. I originally had the URL as SSH but it was hanging. So I switch it to HTTPS, but the repo has a submodule that uses SSH so I'm stuck figuring out…
MikeJansen
  • 3,336
  • 3
  • 26
  • 37