putty

How to save and run a Java file in PuTTY?

半世苍凉 提交于 2019-12-01 13:20:26
I m a complete newbie on AWS(Amazon Web Services) so this might be a basic question. I created an EC2 instance on AWS. I have a windows machine so I'm using PUTTY to connect with the Linux instance. After getting connected with my EC2 instance, I used the below command to write the Java code, vi java First.java After writing the above code, I got the below screen and I wrote the Java code for a simple "Hello World", The problem is now I'm stuck here, what should I do to save what I have written? Where it will be stored, in my laptop or on the EC2? Is there a way through which I can simply

Can we save the execution log when we run a command using PuTTY/Plink

拈花ヽ惹草 提交于 2019-12-01 12:09:24
问题 I am using Plink to run a command on remote machine. In order to fully automate the process I need to save the execution log somewhere. I am using a bat file: C:\Ptty\plink.exe root@<IP> -pw <password> -m C:\Ptty\LaunchFile.txt The C:\Ptty\LaunchFile.txt contains my command that i want to run. ./Launch.sh jobName=<job name> restart.mode=false Is there a way to save the execution log so that I can monitor it later... ? 回答1: The plink is a console application. Actually that's probably it's only

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-

How can I run a Linux command that still runs after I close my PuTTY SSH session?

為{幸葍}努か 提交于 2019-12-01 11:47:23
I am connecting to my NAS over putty which is running linux on it. I wanted to move a big directory from one location to another. Is it possible to keep the process running after I close the putty session ? I am afraid that if I close putty the files will not be copied to the end ? Start your task with 'nohup' and put it in the background with '&', e.g.: $ nohup mv /here /there & $ exit and it should continue running. mattias I would suggest using screen for this. Start a new screen, screen -S <name of your screen> and then you can perform your commands there, detach from the screen and re

Python script for SSH through PuTTY

血红的双手。 提交于 2019-12-01 11:41:27
问题 I am able to give the following command in the command-line C:\>cd "C:\Program Files\ExtraPuTTY\Bin" C:\Program Files\ExtraPuTTY\Bin>putty.exe -ssh root@172.20.0.102 22 This helps me open the SSH session through PuTTY. Whereas I am not able to reproduce them in the Python script. cwd="C://Program Files//ExtraPuTTY//Bin" COMMAND="ls" ssh = Popen(['putty.exe -ssh','%s'%HOST, COMMAND,cwd],shell=True,stdout=f,stderr=f) The error that I see is "putty.exe -ssh"' is not recognized as an internal or

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

Error on checking balance via USSD

a 夏天 提交于 2019-12-01 10:42:30
I've been trying to check my balance from by 3g modem via AT commands and seem to be stuck. The device infomation is as follows: Manufacturer: QUALCOMM INCORPORATED Model: M6281 Revision: SSD_M6281A-0.0.1 1 [Oct 02 2008 07:00:00] The modem has USSD capability (advertised and also present in the factory installed dashboard). I am connecting via putty to COM4 serial port which is my modems application port. All AT commands are working fine but I am getting an error on issuing the following via putty: AT+CUSD=1,"*111#",15 This returns a simple "ERROR". *111# is my carrier's balance check code. I

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