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

Executing (sudo) subcommands using Plink

I am trying to command Linux machine from Window PowerShell. The commands are dependent on the fail/pass of the commands before. Therefore, I have to put all the commands together. I have tried multiple ways of putting commands together but at the…
Sam Shurp
  • 57
  • 1
  • 5
3
votes
1 answer

Sending input during command output with SSH.NET

With PuTTY, I connect to an SSH server and then I execute a command that constantly output logs (multiple lines per second). During this process I can send some keystrokes which are commands, ie. putting 123 or Esc which stops the process. If I put…
Pumar
  • 91
  • 2
  • 13
3
votes
3 answers

Use encrypted password for Plink/PuTTY

I would like to encrypt a password in PowerShell and use it with plink and putty. Yes, I know that it expects only cleartext password (Password encryption using SecureString for plink.exe command). No, I will not use generated keys because we don't…
igor
  • 248
  • 4
  • 16
3
votes
1 answer

capture plink failed connection messages to file

I am using plink in windows to connect to a network device and capture the output to a file. That part works great. Here is an example of the command line I am putting in a batch program. plink.exe -v -l [username] -pw [password] [ip address] -m…
3
votes
3 answers

Mercurial "hg clone" on Windows via ssh with plink issue

I have a Windows Server 2008 machine (iis7) that has CopSSH set up on it. To connect to it, I have a Windows 7 machine with Mercurial 1.5.1 (and TortoiseHg) installed. I can connect to the server using PuTTY with a non-standard ssh port and a .ppk…
Kyle Tolle
  • 694
  • 2
  • 7
  • 17
3
votes
0 answers

PuTTY plink sending control+C

I am using Putty plink command line utility to run a few scripts on my UNIX server. I use the -m option as: plink -ssh -pw xxx myserver –m file.txt The file file.txt contains a list of commands that are to be executed and is generated dynamically…
3
votes
2 answers

Testing using Plink.exe to connect to SSH in C#

Im trying to connect to a unix terminal via plink.exe. The goal is so that I can read the text back into a string. My dilema is that the bank I work for uses an old as400 type system that we normally access through putty. I'm trying to develop an…
Festivejelly
  • 670
  • 2
  • 12
  • 30
3
votes
2 answers

Create a process using Plink in PowerShell and sending commands to it

I need to be able to create a process on a remote device and send come commands to it using a PowerShell script. I need to do it this way because I get prompts when I use a command. I have been trying to figure out how to do this by using Google…
Programmer_D
  • 601
  • 2
  • 15
  • 27
3
votes
1 answer

Passing arguments from a command prompt to remote ubuntu machine

I am trying to pass arguements to a local script to be executed on a remote machine. The script works fine as I have tested it passing variables in manually. I am trying to use plink for this. I take in username (arg to be passed to script) and…
Cen92
  • 171
  • 1
  • 13
3
votes
2 answers

Plink passing arguments

plink user@10.220.60.xx -t '/home/user/test/testpgm' I'm able to run the below program which resides on a Linux machine from a windows machine using the above plink cmd. #include int main(int argc,char *argv[]) { int i; char…
m4n07
  • 2,267
  • 12
  • 50
  • 65
3
votes
2 answers

Using plink and executing from a remote machine(windows)

plink user@10.220.60.xx '/home/user/test/testpgm' On running the below program which resides on a Linux machine from a windows machine using plink, I get only the following messages. Test Pgm Enter a string: On Entering a string as input, It doesn't…
m4n07
  • 2,267
  • 12
  • 50
  • 65
2
votes
2 answers

compile c++ in Emacs via tramp: Save password

I am working with emacs in Win7 to develop C++ Code on a Linux server via SSH. Loading and Saving via Tramp (using plink) works well and the "Compile" command in emacs can also be used, but I need to reenter my password everytime. Is there any way…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
2
votes
2 answers

Running plink in winpexpect

I'm trying to use plink in winpexpect to connect to a remote Linux server. I'm using the following code: child = winpexpect.winspawn('plink root@hostname') child.logfile = sys.stdout i =…
Symmetric
  • 4,495
  • 5
  • 32
  • 50
2
votes
2 answers

How can I do variable substitution in this putty plink echo command

I'm trying to break down the following plink command and modify it to allow a variable substitution. plink.exe 192.168.1.1 --% echo """#define MYSPACE""" > /home/my/file.txt I want to do the following, but But what follows the echo is sent to bash…
Glen G
  • 71
  • 5
2
votes
1 answer

Running command using Plink through Python and serial port?

I can open a new cmd window and connect with plink and serial port through Python. import os import subprocess os.system("start cmd /k plink.exe -serial COM4 -sercfg 115200,8,n,1,N") Still good here, but when I want to run ifconfig, it didn't…
Jean
  • 29
  • 1
  • 4