Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plink]

Plink (PuTTY link) is a command-line connection tool similar to UNIX ssh.

-1
votes
0answers
42 views

plink connection refused to busybox distro

From Windows10, I can putty to the distro fine. No problem. putty -ssh -l root -pw root 192.168.82.102 It opens putty console and a prompt. But when i try plink: plink -ssh -l root -pw root 192....
0
votes
1answer
32 views

plink - Password change required but no TTY available

I have 1000 servers to work with, but today all the server passwords expired.  I regularly use plink (PuTTY) to connect with 1000 servers.  Today I got error “Password change required but no TTY ...
1
vote
2answers
122 views

Executing multiple commands over serial port with PuTTY with a .bat file with a delay between individual commands

send.bat: plink -load test < commands.txt (test is a saved session in putty) commands.txt echo set_zero timeout /t 3 /nobreak >nul 2>&1 pause >nul 2>&1 echo set_a 65535 ...
1
vote
1answer
33 views

Plink does not work with commands file for git in sudo

I use plink.exe for automatisation of git commands and this works fine. But i need to use this with servers with login of sudo plink.exe -ssh argentium@186.118.154.164 -m commands.txt my commands....
1
vote
0answers
34 views

Unexpected behavior in VBScript with SendKeys

I'm attempting to create a VBScript I can run from a scheduled task to restart our SonicWall firewall. The firewall is a "lower-end" business model (TZ400), and I periodically have to reboot it ...
0
votes
0answers
17 views

How to Jump from one server to another using plink commands

I want to login to one server then jump to a ssh server. Commands i am using is: plink -P 22 -l %user% -pw %pass% %host% -hostkey %hstkey% -ssh -P 22 -l %user2% -pw %pass% -batch -m ...
0
votes
0answers
63 views

Plink sudo rootsh send password

I want to automate some tasks on a server and i'm having some issue with sending the password for sudo. Scenario: linux server can ssh with local user ( I can send this user's password via plink) ...
0
votes
1answer
28 views

How to access a serial device from VM Server

I have a serial device that is physically connected to my Window PC. From my window, I can use "PUTTY" to set up the connection to access this device and do some extra work after login this device. ...
0
votes
0answers
120 views

Automate Plink serial connection

To open Plink using Python in Windows, I use Subprocesss.Popen(). I would like to create a script that interacts with the Plink console, after the opening of the Serial session, by entering the login ...
2
votes
0answers
288 views

Why is an SSH socks5 proxy performing better than a normal socks5 proxy?

I've been trying to setup a proxy tunnel for gaming for the past month and have encountered (To me) a very strange issue. Currently I'm using a socksifier to redirect/edit the connect() command on a ...
2
votes
1answer
396 views

Is it possible to create a SOCKS chain using PLink on Windows?

I've been trying to create a chain of SOCKS proxies using the Dynamic Port parameter of PLink/PuTTy, but to no success. I'm currently trying to chain from my Windows machine using PLink/PuTTy > Linux ...
0
votes
1answer
203 views

Putty manual session and Plink session behave differently

HI I'm connecting to a remote Linux server using putty from a win PC and executing certain commands there. I wish to automate the tasks using plink as follows: plink serveradress -l userid -pwd pass -...
0
votes
2answers
342 views

How to pipe input to Wireshark in Windows Power Shell?

I am trying to run the following command in Power Shell: C:\Users\mne\Desktop\plink.exe -ssh -pw abc root@myhost "tcpdump -w - -U -i vethf90673c 'port 5000'" | &"C:\Program Files\Wireshark\...
0
votes
0answers
1k views

How to escape password in plink sudo command?

When trying to login with plink to a server I don't know how to pass the sudo password in the command correctly. I use something like this: plink -ssh -t <user>@<server> -pw <password&...
0
votes
1answer
555 views

How to catch “Access denied” using plink from powershell script

I have a powershell script that calls the following command: plink -batch -ssh $defUser@$srv -pw $defPassword -m $executeCommandFile The problem that $defPassword is not always the same/correct. How ...
2
votes
1answer
345 views

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 ...
2
votes
1answer
572 views

ConEmu and console SSH clients that produce raw output (no ANSI escapes processed)

I use PuTTY daily and I use ConEmu heavily too (the latter mostly for Far Manager). A week ago I stopped using MTPuTTY in order to put PuTTY directly into ConEmu (because MTPuTTY grabs focus too ...
1
vote
1answer
681 views

Plink is not switching user using su command

I am connecting to a server via plink as follows: plink -ssh -l username -pw password example.host.com -m C:\Putty\input.txt > C:\Putty\output.txt input.txt contains whoami su - newsuser whoami ...
2
votes
1answer
194 views

Powershell: Properly escape apostrophes

I want to execute a command from powershell, which in turn executes a command on a foreign server, using plink. But this only works if I do not have ' or " in the command, otherwise Powershell jumps ...
0
votes
0answers
2k views

Make a reverse dynamic port forward using only Plink

A lot of tuto online give an explanation about how to configure ssh to make a dynamic port forwarding server. In my case, using only Plink, I have some trouble. The context is as follow : I want all ...
0
votes
0answers
192 views

How to transfer parametres to plink.exe?

I need to connect in PowerShell with remote host by telnet. I thought to use plink. So i tried plink.exe -telnet -P 23 '10.10.10.2' < .\commands.txt But I get an error: At line:1 char:38 + plink....
1
vote
1answer
3k views

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

Using Plink with Pageant in the Windows Task scheduler

On a Windows machine, I have a script that starts a Linux server, performs a backup, and finally shuts down the server. The script uses Plink with public key authentication to run the shutdown command ...
0
votes
0answers
122 views

Executing “cp” from plink script results in error

I'm trying to run several commands on may Linux VMs via plink. I created following plink command file: cp /home/user/scropt.sh /tmp ; chmod a+x /tmp/script.sh ; /tmp/script.sh I run plink like this:...
1
vote
1answer
2k views

What exit code values does plink.exe return?

I'm using the PuTTY utility plink.exe to run remote commands, and it's returning exit code 2. What does this mean?
0
votes
1answer
48 views

Using PLINK.EXE can I create multiple / different Output files automatically?

I am trying to build automatic capture of Cisco ASA FW using the following.... for /f %%i in (firewalls.txt) do plink frank_belzer@%%i -pw scaFb673149! -m SCAConfigCapture.txt > testoutput.txt ...
0
votes
1answer
90 views

Need to skip password entry in script

Have a shell script on Unix server, that is needed to be launched by another script from Windows machine. And the problem is that script on Windows machine has to get a key-fingerprint (its located on ...
1
vote
1answer
1k views

How to make HTTP requests using Plink

On Windows I want to make simple HTTP requests to find bugs in my scripts. Of course I usually use more convenient tools (like the "REST client"-plugin in Firefox) but now I want to go one level ...
1
vote
1answer
1k views

Concurrent plink (putty) instances / sessions limit?

I'm controlling a lot of devices on which i need to batch run commands, it's working just fine sequentially but if i try to run all of them in parallel i'm getting plink network errors. I'm pretty ...
2
votes
0answers
4k views

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 ...
5
votes
1answer
3k views

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 ...
0
votes
1answer
434 views

Connecting to app server using plink

I need to connect to psadmin using plink. Try: plink -ssh [hostname] -l [user] -pw [password] psadmin When I run this I get error code 127 Command not found: psadmin When I enter into the shell ...
0
votes
2answers
855 views

If ssh connection fails using SOCKS then what? Automate switch to no proxy?

Right now I am using plink in a batch routine that reconnects to my SSH server if I loose connection. I use my plink connection & socks proxy (firefox) to forward all my browser traffic. Works ...
0
votes
1answer
1k views

Does plink support GSSAPI?

Does plink support GSSAPI? I know putty itself does and enabling GSSAPI works fine with putty, but for some reason it is not working with plink. I was under impression that plink would work the same. ...
0
votes
0answers
803 views

feed data to remote SSH linux script through putty/plink that were launch by vb.net

I am stucked thinking to send data to the SSH linux script while it is running in plink with vb.net. I am able to get the output & surely able to execute the SSH linux script with standardiput....
0
votes
1answer
450 views

Windows 7 hostfile not used by PuTTY-Pliunk

I am having a problem and I don't understand the root cause. Situation I used to have a decent router running Tomato but it died. I bought a new one and had it installed/running past return date ...
0
votes
1answer
669 views

trying to transfer a file from my computer to a unix server

I m trying to automate the deployment process wherein i follow the following steps- 1.Run a Ant Script to build a .ear file 2.Login to the unix server using putty(SSH Connection) providing the login ...
1
vote
1answer
130 views

Tunneling ssh traffic to Linux server via multiple windows servers (2k8)

I am looking for a solution to this problem: At the end there are 3 different Linux servers (let's name them probe1,probe2,probe3) There's a win2k8 gateway to access them via ssh (22) (let's name it ...
0
votes
1answer
9k views

Run .sh file in linux machine via putty

I want run an .sh file which take an argument in a Linux machine. I'm using plink.exe to execute this .sh file from a windows machine. But I don't know what to write in the batch file in order to run ...
1
vote
1answer
3k views

Using plink to establish a tunnel for the duration of a batch script

I have a batch script that synchronizes data between a local machine and a machine that can be reached over an SSH tunnel. Rather than leaving the tunnel open all the time, I'd like it to start when ...
2
votes
1answer
8k views

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 ...
2
votes
4answers
1k views

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 ...
2
votes
1answer
1k views

How to add a string to remote file with plink

I'm writing a new backup script in [Powershell][1] to backup our [Azure SQL][2]. After the backup, I need to write into a logfile on a remote linux server. I thought about using plink (the [putty][3]...
3
votes
0answers
3k views

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 ...
1
vote
4answers
3k views

SSH Terminal width when run from plink.exe on Windows

I'm using Console2 to run a Powershell in which I run plink.exe to connect to a Linux server. It works fine except that ps, top and other utilities in the shell only thinks the output window is 80 ...
4
votes
3answers
4k views

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 ...
1
vote
1answer
533 views

Windows SSH client that allows hostkey via command line?

So we know that you can provide the hostkeys for putty via the registry, but this is annoying and painful if you are trying to automate things. WinSCP allows you to do this via the -hostkey switch, ...
0
votes
2answers
988 views

PLINK is stuck at an older host - how do I replace it?

For some reason, when I issue PLINK.EXE by itself (no command line parameters) it always tries to connect to some remote host which I used in the past but I no longer use now. How do I change it to ...
0
votes
1answer
1k views

plink to execute passwd command in linux

i am using a window batch file and execute plink.exe to access to my fedora ftp server. It is successful. Now i created a user by useradd command with password. But it is unable to login as by default ...
7
votes
3answers
3k views

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 ...