plink

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

你。 提交于 2019-11-28 11:45:35
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 automation suite that will interface with the system and run jobs and analyse the outputs etc. So I figured I'd use plink through C#. If I run the code via Command prompt I get (roughly) the text I need back. However im suffering a problem in my C# code in that it just hangs and I never get a reponse. What I want is like this: Connect to server Input

Configure Git to use Plink

核能气质少年 提交于 2019-11-27 19:56:06
问题 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. 回答1: 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

git - Server host key not cached

被刻印的时光 ゝ 提交于 2019-11-27 17:11:32
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 the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx Connection abandoned. fatal: The remote end hung up unexpectedly How can I solve this? I'm using git from the command line in Windows 7. Edit When I try to do a simple ssh ssh user@hostname I get the following error: Could not create directory '/c//%HOMEDRIVE%

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

巧了我就是萌 提交于 2019-11-27 07:30:15
问题 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 admin@192.168.1.1 -pw xxx uptime > c:/netapp/python/12.txt') 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 9d:08:37:a8:d0:34:a3:d2:d8:e5:09:7e:63:08:a9:1b If you trust this host, enter "y" to add the key to Store key in cache? (y

Run shell script (with parameters) on Windows command line via Plink

二次信任 提交于 2019-11-27 05:09:49
I need to execute a shell script remotely inside the Linux box from Windows #!/bin/bash if [ "$#" -ne 1 ]; then echo "Illegal number of parameters" exit fi echo "$1" Here is the command I ran from Windows command prompt cmd> plink.exe -ssh username@host -pw gbG32s4D/ -m C:\myscript.sh 5 I am getting output as "Illegal number of parameters" Is there any way I can pass command line parameter to shell script which will execute on remote server? You misunderstand how the -m switch works. It is just a way to make plink load the commands to send to the server from a local file. The file is NOT

git - Server host key not cached

♀尐吖头ヾ 提交于 2019-11-26 17:57:31
问题 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 the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx Connection abandoned. fatal: The remote end hung up unexpectedly How can I solve this? I'm using git from the command line in Windows 7. Edit When I try to do