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
Filter by
Sorted by
Tagged with
1 vote
1 answer
41 views

Resume in PowerShell 5.1 if exe doesn't finish

I am using a loop (ForEach-Object) in a PowerShell script to connect to different hosts via plink (PuTTY). plink -ssh $_ -l $user -pw $password -T -batch $command $_ is the IP address of the host. ...
1 vote
2 answers
4k views

Script via Plink in .bat behaves differently

I have a .bat file on my Windows machine. This .bat file uses plink.exe to connect to an Ubuntu machine and execute an .sh script. However, I get different behaviors on the script depending on how ...
1 vote
1 answer
2k views

Sourcetree newer than 3.4.7 can't fetch/pull with a fatal protocol error: bad line length character

I'm using Atlassian Sourcetree for Windows, and after a recent upgrade, it stopped working with some of my repositories. The repositories are configured for passwordless access via SSH protocol (using ...
0 votes
0 answers
17 views

How do I use plink to connect to a serial port with a named pipe address?

The putty is configurable via gui to simply connect to a piped serial port, but I can't find a command line way to do it on plink's documentation! Would like to provide a command line example that can ...
0 votes
1 answer
9k views

How to write a script to automate Putty (PLINK) on Windows 10

I am doing a manual process that is done each day within Putty and wanted to automate it. There is no need for a person to do this because all of the keyboard inputs do not change each day. I'm trying ...
0 votes
0 answers
83 views

Plink and powershell after successful login to server, enter command 1 and enter password after command 1

Newbie with coding, but doing my best, I believe I'm close. I'm able to successfully log into the server via plink and powershell, but I'm having issues passing further commands after the initial ...
3 votes
1 answer
7k views

Exit Plink when command finishes

I'm trying run multiple command lines via plink.exe. After batch is finished. I want to exit this and execute new command line My script in execute.bat file ( echo cd /appl/ echo sudo -s echo cd ...
1 vote
1 answer
970 views

Sending Ctrl+break sequence through Plink

I am trying to automate the remote server shell commands through Plink. And one of the things which I did is grep command. Now suppose if results lots of data then I just want to break the command. ...
0 votes
1 answer
995 views

Paramiko - Authentication failed [duplicate]

When using paramiko for an ssh connection, an authentication error occurs. Using putty and openssh via command prompt the communication worked perfectly. When using paramiko. I tried simple and even ...
1 vote
1 answer
175 views

Send commands via serial connection using plink from bash script and exit

I'm writing a bash script on a Windows machine that enters a PetaLinux machine over a serial connection, performs some commands, and should exit back to the bash script to continue performing commands....
0 votes
1 answer
391 views

How to run one command to multiple servers with Plink in batch

So far what I have is plink -batch [email protected] -pw password COMMAND & plink -batch [email protected] -pw password COMMAND the problem is after the first command starts the batch waits for a response ...
1 vote
1 answer
60 views

Trouble sending response in Windows Batch script using Plink for Linux appliance Interaction

I'm working on a Windows batch script that invokes plink to interact with a Linux-based virtual appliance. The goal is to send a command like set account name User1 and, in response, the server should ...
0 votes
1 answer
234 views

Bypass first time Plink hostkey verification via PowerShell script

I have written a script as below $ipAddress = "10.10.10.10" $username = Get-Content -Path "path to user name" $password = Get-Content -Path " path to password" $...
0 votes
0 answers
196 views

Using Plink to change user's password remotely [duplicate]

As I am in IT Admin job which requires managing Windows & Linux servers of an organization, the real pain is changing passwords. For Windows, I am able to change from Active Directory itself which ...
0 votes
1 answer
2k views

How to run a batch file with a plink command which needs to run a script file

I am trying to create a .bat file which will create a log file that contains the list of files in a remote unix server. It runs fine when I run it manually through command prompt. But it doesn't work ...
0 votes
0 answers
62 views

Putty/Plink wont connect using scheduled task if im using a proxy and the user is not signed in

I have a problem that i cant seem to be able solving myself. First, what do i want to achive: Set up a scheduled taks that runs a batchfile which is connection a tunnel with a proxy in between to ...
117 votes
21 answers
169k views

git - Server host key not cached

I try to push changes from my local repo to a remote repo. When I type: git push origin I get the following error: The server's host key is not cached in the registry. You have no guarantee that ...
-1 votes
1 answer
180 views

XCode submission using altool is not working via plink

I have automation of submission of iOS apps to the AppStore. In Windows Machine the batch file executed: plink.exe -batch -pw [PASSWORD] [LOGIN]@[IP_ADDRESS] /Applications/Xcode.app/Contents/...
78 votes
5 answers
88k views

Pageant does not load SSH-2 key generated with GitBash

The implementation of key handling with (Tortoise)Git for Windows confuses me. As far as I understood, you can implement with either ssh.exe (gits own ssh program), where you can then choose an ssh ...
2 votes
1 answer
4k views

PuTTY connects but key refused when using Plink

I've created a PuTTY session using a private key (no passphrase) that connects flawlessly from PuTTY . However, when I connect via Plink, loading the same session on the same machine, specifying the ...
3 votes
1 answer
3k views

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 ...
0 votes
0 answers
59 views

How to merge a BEDMatrix with a 'regular' matrix object in R

I am dealing with a new R object class for me, a BEDMatrix object. I have created a BEDMatrix from the standard plink files. Now I want to merge it with a regular matrix object in R. I have tried the ...
2 votes
2 answers
287 views

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

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

Get Mac-Address-Table from HPE Aruba Swtich with plink ssh

this is my code: @( ' ', #for "Press any key to continue" 'show mac-address' ) | plink <ip> -P 22 -ssh -v -l admin -pw pwd -batch Read-Host -Prompt “Press Enter to exit” ...
0 votes
3 answers
2k views

Speeding up ssh in batch files

This is my situation:     I have a linux server/media center with a windows client.     My goal is to remote control rhythmbox amongst other things.     I've done this ...
50 votes
6 answers
58k views

Configure Git to use Plink

I'm trying to configure Git to use Plink. It worked for me many times before. Now, for some reason, this option isn't available to me (it is disabled): I tried uninstalling and reinstalling Git a ...
2 votes
1 answer
1k views

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

Plink fails to run when executed from PHP in wamp, but works when executed manually

I need to access a Linux machine from Windows 7 via PHP. For that I created simple bat (MyScript.bat) script containing plink. c:\wamp\www\abc\plink.exe [email protected] -pw l1c -C "df -h">11....
3 votes
1 answer
806 views

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 ...
32 votes
9 answers
48k views

How to solve TortoiseGitPlink Fatal Error? [closed]

I was using Git with beanstalk in windows 7. Now I got new system with Windows 8.1. Now I configured Git and Tortoisegit with new system.Its working fine in local commit but when I pushed to live I ...
0 votes
1 answer
159 views

Set plink username per-host from git?

I have the following Git configuration file (I'm using plink because this host is configured with a TPMVSC-backed SSH key): # This is Git's per-user configuration file. [user] name = James ...
1 vote
0 answers
2k views

Logging in readable Plink output (sshlog is too clumsy) [duplicate]

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

Execute commands on remote server behind another server (jumphost) using Plink

I am trying to make an automation using Power Automate Desktop for PuTTY. I have come across a solution to use cmd to run commands using plink. I used the following steps: I added PuTTY to system ...
1 vote
1 answer
760 views

Entering password to remote ssh through Plink after establishing a connection

I'm trying to establish a connection through Plink, after that I want to ssh user@server and then enter a password. I did the following: plink.exe -ssh user1@server_ip1 -pw password1 -t < "...
0 votes
0 answers
1k views

Plink2 "command not found"

I have been using plink 1.9 before and today downloaded the MacOS 64-bit^2 version of plink2. I made sure that I was in the same directory as where I stored plink2.exec but I still could not get ...
1 vote
1 answer
888 views

Run command on server using Plink and keep it running after disconnecting

I have a Raspberry Pi which I use to play a video on a loop. I have a button which I use to end the video to display the desktop wallpaper which I have as a static image. To do this I use a simple ...
2 votes
4 answers
9k views

Error passing multiple commands to Cisco CLI via plink

I've gotten some help with an earlier part of this batch file, but now I'm having trouble with the final component. I've tried a few things with no success. I tried changing the CRLF to LF which did ...
0 votes
1 answer
2k views

Plink Proxy error: Connection refused, while PuTTY works with the same session

PuTTY session created for Telnet with a socks5 proxy (no auth needed) and named it to telnet_session_with_proxy If I use PuTTY with selecting the given session, the Network Element is reachable (...
1 vote
3 answers
1k views

Redirecting an output of Plink produces an empty file

I'm programming a short batch file that opens plink and redirects the output to a log file. But my log file is empty. Any advice please? start plink.exe -serial %COM_DEVICE% -sercfg xxxxx,8,n,1,N -v &...
-1 votes
1 answer
194 views

Plink and Cygwin

I am very new using Linux. I need to use some programs (plink; https://www.cog-genomics.org/plink/ and ldsc: https://github.com/bulik/ldsc) that are usually ran in Linux. I am a windows user and I ...
0 votes
1 answer
111 views

Using Plink to update vCenter Logon banner title only displays the first word

I am automating the baseline configuration process to include DISA STIGs for ESXi and vCenter servers. The portion I am having an issue with is updating the title for the logon banner, specifically, ...
1 vote
3 answers
6k views

How to pass echo y to plink.exe for first connection

I would like to pass echo y to plink.exe, so that plink execute a command. How it can be achieved? os.system(' c:/netapp/python/plink.exe [email protected] -pw xxx uptime > c:/netapp/python/12....
4 votes
2 answers
3k views

Visual Studio 2017/2019/2022 git sync/pull/push/fetch operation stuck, and cannot be stopped

I initiate sync, fetch, pull or push from the 'Git Changes' tab in Visual Studio, but the operation just hangs, with no option to stop it. I have to hit the 'X' to close Visual Studio. If the ...
0 votes
2 answers
2k views

Securely pass password to PuTTY process on start

I am maintaining an application in our company (written in C#), which runs on a jumphost and provides the functionality to search across different servers and initiate a PuTTY connection to that ...
4 votes
3 answers
9k views

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

Plink error "Stopping as there are no SNPs left for analysis"

This is the first time I'm going to use Plink. I have downloaded the plink.exe and set path as given in webpages to use plink. And typed plink, which must give the summary of using Plink. But it is ...
1 vote
2 answers
2k views

Using plink to write a file to a COM port and read back the response from the target

I want to send a list of commands to a device on my Windows COM port and receive the responses back for further processing. The target device accepts write commands and query commands. When I send a ...
0 votes
3 answers
2k views

How to suppress "keyboard-interactive" prompts in plink.exe

I have a PowerShell script that calls plink.exe regularly. Normally, the two output lines about keyboard-interactive prompts are simply annoying. However, when run using Start-Job, they get output as ...
-1 votes
1 answer
586 views

Colors not showing properly in Plink

I want to use the -pw parameter that is not included in the ssh, but plink does not handle the $TERM correctly as ←[46m←[30m are displayed instead of their respective colors. Is this fixable and if so,...

1
2 3 4 5
9