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
1 answer

ssh agent plink fails to popup yubikey input form

When using plink as ssh agent in sourcetree under windows to pull code from Linux servers that has Yubikey configured, it just fails to popup yubikey authentication form, so I have no chance to click my yubikey and the pull fails directly. Is there…
FaceBro
  • 787
  • 2
  • 13
  • 29
2
votes
1 answer

Plink cmd.exe mkdir with a space doesn't work

I'm using plink on a windows 7 desktop to create a folder a on windows 2008 server. The server uses pragmaSSH to allow the SSH connection and everything works just fine there. The directory I want to create has a space in it and that is where my…
2
votes
1 answer

Answering Plink hostkey and KEX prompts in PowerShell

I am successfully able to grab the result text I need from the plink.exe command-line below to $response. In order for the command to execute on the remote SSH device, I had to first precede it with emulated keystrokes Y {enter} Y…
MKANET
  • 573
  • 6
  • 27
  • 51
2
votes
1 answer

Executing "su" with PuTTY Plink from a batch file

I'm having trouble trying to get my batch file to also give me super user access in PuTTY/Plink. I can auto-input the ip and password but I want to also automate it to where it will also give me su access when I run this batch file. So far it runs…
drod2030
  • 41
  • 5
2
votes
0 answers

Using TortoisePLink in GIT_SSH_COMMAND: "-batch" switch not respected

(OS: Windows; using PowerShell) Background I intend to have "git pull" run from time to time by my service (i.e. Windows Service). In order to achieve it I use TortoiseGitPLink to provide git with my SSH key every time it's needed. This is done by…
LA.27
  • 1,888
  • 19
  • 35
2
votes
1 answer

getting the list of the saved session in putty using plink

I am trying to write my scripts under windows to control putty. Say I have a session called mySession. I can send a command to it using: plink -load mySession -l myUserName -pw myPassowrd ps -ef Now say I have many different sessions saved. is…
S4M
  • 4,561
  • 6
  • 37
  • 47
2
votes
0 answers

How to execute multiple commands of plink in some time gap in Java?

I'm new to Java, I was looking for a solution to execute specific commands Using ProcessBuilder. I have tried multiple approaches but in all, commands are executing in one go. For eg. ProcessBuilder pb= new…
Satyam pal
  • 21
  • 2
2
votes
1 answer

using PLINK to Send a remote command with single and double quotes

I'm trying to use plink on winXP to connect to a linux server and execute a command. Here's the command line I'm running: plink some_profile cd "$(echo 'T:\somedir\somesubdir with space in it\' | sed 's_\\_/_g' | sed 's_T:_/media/drive1_g')";unrar…
Ali
  • 23
  • 1
  • 4
2
votes
1 answer

Both display and save Plink output

I'm logging into to a remote ssh session using plink.exe to perform certain tasks using a batch script. Getting the output of these commands in a log file as well on the screen is very important for me. I tried using usual batch way i.e. plink…
Ahmed M.
  • 49
  • 1
  • 7
2
votes
1 answer

Using encrypted password to SSH to multiple servers using Plink

My batch file code requires to run some shell commands on multiple servers using SSH. For that I'm using Plink from a for loop. I do not want to enter the password in plain text to the Plink command line using -pw. Instead, due to security concerns,…
theITgirl
  • 57
  • 7
2
votes
1 answer

Pseudo TTY line limited to 256 characters?

A SSH connection is opened with Plink (PuTTY) from a windows machine to a solaris server via: Plink.exe -t /bin/bash Then a bash command line is written to stdin of Plink.exe and is parsed and executed by the remote /bin/bash process. It…
Ulrik
  • 392
  • 1
  • 13
2
votes
0 answers

Sending and analysing multiple commands with plink.exe in python

I've been struggling to figure out how to send multiple commands with python through a plink ssh connection. I'm aware of paramiko and other really good libraries but due to our application-based firewall, I cannot use python directly. I need a…
jtamasi
  • 21
  • 2
2
votes
1 answer

How to list loaded SSH keys in Windows (pageant)

I'm trying to create simple Windows batch script that will manage connectivity to our client. That includes some tunnels using plink.exe and socks chain. Each hop requires ssh key authentication for which I'm using pageant.exe. I have each piece…
R1cky
  • 662
  • 5
  • 16
2
votes
3 answers

How to respond yes to plink's cache key question in c#

I'm using plink from c# to connect to Linux servers and run some programs. Both the c# console program and the plink.exe are on the same windows machine. The problem is when I connect to a Linux server for the first time, plink asks me if I want to…
danze
  • 745
  • 2
  • 10
  • 24
2
votes
1 answer

Using Plink, how to auto-input password into Ubuntu ssh?

I'm currently setting up a batch file to ssh from a Windows machine into a Ubuntu machine and issue a series of commands. I'm using plink, and I'm using the -m argument to pass a .txt file with a list of commands. The batch file code that runs…
KZG
  • 21
  • 1
  • 2