plink

Executing command on Plink command line fails with “not found”

半世苍凉 提交于 2019-12-01 12:00:45
Goal: connect to AntMiner via SSH, and send poweroff command. command: plink.exe -v -t -ssh antminer -l root -pw xxx poweroff Connecting to 10.0.1.11 port 22 We claim version: SSH-2.0-PuTTY_Release_0.70 Server version: SSH-2.0-dropbear_2012.55 Using SSH protocol version 2 Using Diffie-Hellman with standard group "group14" Doing Diffie-Hellman key exchange with hash SHA-1 Host key fingerprint is: ssh-rsa 1039 xxx Initialised AES-256 SDCTR client->server encryption Initialised HMAC-SHA1 client->server MAC algorithm Initialised AES-256 SDCTR server->client encryption Initialised HMAC-SHA1 server-

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

好久不见. 提交于 2019-12-01 11:01:19
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" "Path to the program used by `run-plink'") ;; arguments (defvar plink-arguments '() "Commandline arguments to pass to `plink'") ;; prompt (defvar plink-prompt-regexp "^>\s" "Prompt for `run-plink'.") ;; Run-plink (defun run-plink () "Run an inferior instance of `plink.js' inside Emacs." (interactive) (setq plink-buffer "*Plink*") (let* ((plink-program

Executing command on Plink command line fails with “not found”

你。 提交于 2019-12-01 10:52:33
问题 Goal: connect to AntMiner via SSH, and send poweroff command. command: plink.exe -v -t -ssh antminer -l root -pw xxx poweroff Connecting to 10.0.1.11 port 22 We claim version: SSH-2.0-PuTTY_Release_0.70 Server version: SSH-2.0-dropbear_2012.55 Using SSH protocol version 2 Using Diffie-Hellman with standard group "group14" Doing Diffie-Hellman key exchange with hash SHA-1 Host key fingerprint is: ssh-rsa 1039 xxx Initialised AES-256 SDCTR client->server encryption Initialised HMAC-SHA1 client-

Opening a plink window from VB.NET application without showing the black ugly plink window

一曲冷凌霜 提交于 2019-12-01 10:42:56
I am looking to call plink from a vb.net application in the background (without showing the black plink cmd screen) is it possible? Absolutely. See the instructions on dreamincode.net . Basically, you want to hide the window, and redirect standard in/out. Dim p as New Process With p.StartInfo .WindowStyle=ProcessWindowStyle.Hidden .RedirectStandardOutput=true .RedirectStandardInput=true End With You can then read and write using p.StandardInput and [ p.StandardOutput][3] . You can find more options to set as well in the ProcessStartInfo class . 来源: https://stackoverflow.com/questions/6760236

Script via Plink in .bat behaves differently

别等时光非礼了梦想. 提交于 2019-12-01 10:32:36
问题 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 Plink is used: log onto Ubuntu directly (in person) -- script succeeds ssh via Bitvise client -- script succeeds ssh via Plink (by calling plink.exe ) and calling script from interactive shell (it's a Ubuntu shell within windows cmd.exe ) -- script succeeds ssh via .bat which then calls Plink --

Plink from Windows service cannot find Pageant

末鹿安然 提交于 2019-12-01 05:43:36
问题 I have one windows service which will use plink.exe for SSH connection and I found that Plink cannot find the running Pageant. Here is the steps I have done so far. Install Windows service to run as particular user Before starting Windows service, I log in as that user and start Pageant with PuTTY generated key. Then I start the Windows service (but I can't manage to make it work since Plink cannot find Pageant and server reply as No supported authentication methods available .) Note: If I

Plink does not source bashrc or bash_profile on connect

泪湿孤枕 提交于 2019-11-30 18:16:59
I am trying to use plink as an ssh alternative on windows, but I am finding that when plink connects to a remote linux machine, it does not source .bash_profile or .bashrc. Is there a different dot file I should create? Or is there another option? For example, my bashrc file adds a directory to my path. This directory contains extra programs that I want to use, one being python. This will not work: plink host python Where as this will: plink host "source .bashrc;python" When I use plink without a command parameter, it sources .bash_profile and everything works fine, but it appear that by

Plink does not source bashrc or bash_profile on connect

纵然是瞬间 提交于 2019-11-30 02:17:40
问题 I am trying to use plink as an ssh alternative on windows, but I am finding that when plink connects to a remote linux machine, it does not source .bash_profile or .bashrc. Is there a different dot file I should create? Or is there another option? For example, my bashrc file adds a directory to my path. This directory contains extra programs that I want to use, one being python. This will not work: plink host python Where as this will: plink host "source .bashrc;python" When I use plink

Configure Git to use Plink

我只是一个虾纸丫 提交于 2019-11-28 16:30:48
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 hundred times. Nothing. I can't get to this option enabled. This is an old question, and I just have the same problem, just to be sure I will write down the solution that worked for me. The msysgit installer didn't show the screen that allows to select between the openssh client and the Tortoise (plink) The solution is to install Putty (or Tortoise Plink I guess), create and save at least one session,

After the upgrade to TortoiseGit v1.8.15.0 and Git v2.5.0 hosts cannot be found

↘锁芯ラ 提交于 2019-11-28 13:13:33
I've just updated my TortoiseGit from v1.7.* to v1.8.15.0 and Git from 1.* to v2.5.0.windows.1 . Now trying to perform a remote operation like pull I'm getting errors: git.exe pull -v --progress "origin" Unable to open connection: Host does not existfatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. git did not exit cleanly (exit code 1) (1747 ms @ 19.08.2015 18:43:33) I changed the SSH client setting from TortoiseGitPlink to PuTTY . It didn't work as well, but the PuTTY Error provided following information: Unuble to