plink

plink pageant not working from asp.net

余生颓废 提交于 2020-02-05 05:23:10
问题 the problem in a nutshell: running plink(with specific arguments) works from cmd, but not from asp.net the command being executed: "C:\Program Files (x86)\PuTTY\plink.exe" -batch abc@xyz ./fake_email.sh from cmd, the command executes correctly, with fake_email.sh returning "0". from asp.net i get the following error: The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa 2048

emacs tramp mode under windows 7, using plink method

左心房为你撑大大i 提交于 2020-01-24 14:06:16
问题 I'm trying to get tramp working under emacs 24.3 (tramp version 2.2.6-24.3) on windows 7 and I'm almost there. I've got putty/plink installed and in the path. Here's what's in my .emacs: ;;; TRAMP for remote editing ;;; (require 'tramp) (setq tramp-default-method "plink" tramp-default-user "dbraze" tramp-default-host "camille.haskins.edu" ) when I do M-x find-file /plink:: I'm prompted for a password. When I type it in all seems well, but eventually the connection fails. This is what I end up

emacs tramp mode under windows 7, using plink method

99封情书 提交于 2020-01-24 14:02:08
问题 I'm trying to get tramp working under emacs 24.3 (tramp version 2.2.6-24.3) on windows 7 and I'm almost there. I've got putty/plink installed and in the path. Here's what's in my .emacs: ;;; TRAMP for remote editing ;;; (require 'tramp) (setq tramp-default-method "plink" tramp-default-user "dbraze" tramp-default-host "camille.haskins.edu" ) when I do M-x find-file /plink:: I'm prompted for a password. When I type it in all seems well, but eventually the connection fails. This is what I end up

Open SSH tunnel via Plink and run R Scripts via command line batch file

♀尐吖头ヾ 提交于 2020-01-14 05:11:11
问题 I am trying to open an SSH tunnel via Plink in the command line to run a few R scripts and I cannot get the R scripts to run and when they do run the tunnel was not created, so the connection to my database crashes. The Plink code looks like this: plink.exe -ssh [username]@[hostname] -L 3307:127.0.0.1:3306 -i "[SSH key]" -N Followed by the code to run the R scripts "C:\Program Files\R\R-3.2.1\bin\x64\R.exe" CMD BATCH qidash.R I cannot seem to get the tunnel to stay open to run the R script.

Executing (sudo) subcommands using Plink

允我心安 提交于 2020-01-13 19:22:12
问题 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 ends I only receive the output of the first command. PS C:\Users\sams> plink -ssh -l username -pw root username@10.223.26.34 -t "sudo -i && cd /root/docker/storm-supervisor/ && ./stop-all.sh" The actual result: Only receives the output of the first

Unable to run shell script with ktutil command from Windows using PLINK

巧了我就是萌 提交于 2020-01-03 00:27:32
问题 I have a small shell script test.sh in Unix with the following content: cd /usr/kerberos/sbin echo l | ktutil echo quit | ktutil Its running fine in Unix and giving the output of ktutil . However when I run from Windows using the PLINK.EXE of PuTTY, its not running the ktutil command properly. The output it gives is the usage of ktutil . Usage: ktutil [-hv] [--version] [--help] [--keytab=keytab to operate on] [-k keytab to operate on] [--verbose] command -k keytab to operate on, --keytab

get return code from plink?

妖精的绣舞 提交于 2020-01-01 08:57:08
问题 In a DOS batch script, I'm running a single command on a remote (also windows) computer using plink. Formerly, this command was only run on the local machine, and was relying on the return code to determine success. Is there a way to easily get this information back through plink? 回答1: That's not possible with plink . The current consensus is to have the remote script echo its exit code to a log file, then use pscp to transfer the log file to the local machine. See http://fixunix.com/ssh

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

人走茶凉 提交于 2019-12-30 11:09:11
问题 I am looking to call plink from a vb.net application in the background (without showing the black plink cmd screen) is it possible? 回答1: 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

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

我的梦境 提交于 2019-12-30 11:08:02
问题 I am looking to call plink from a vb.net application in the background (without showing the black plink cmd screen) is it possible? 回答1: 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

PuTTY plink sending control+C

你。 提交于 2019-12-24 00:53:30
问题 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 using some application program. Some of the commands in file.txt can run for hours, which will make the user wait for a long time. Moreover, I am interested in execution of the first line of each of the scripts. So I want to make sure that a control