putty

Two separate Vagrant machines, windows host, PuTTY - how?

这一生的挚爱 提交于 2019-12-11 21:14:14
问题 I'd like to create two vagrant machines via two vagrant files, and be able to ssh into them via PuTTY. I thought it might be as simple as port forwarding one of them via, say, port 2223 instead of 2222, and using two PuTTY connections. Despite my vagrant ssh-config looking like this: HostName 127.0.0.1 User vagrant Port 2223 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile "XXXXXXXXXXXXXXXXXXXXXXXXXXX" IdentitiesOnly yes LogLevel FATAL ... I seem

如何使用SSH在远程计算机上运行shell脚本?

こ雲淡風輕ζ 提交于 2019-12-11 18:39:43
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我必须在远程机器上运行shell脚本(windows / Linux)。 我在机器A和B上配置了SSH。我的脚本在机器A上,它将在远程机器上运行我的一些代码,机器B. 本地和远程计算机可以是基于Windows或Unix的系统。 有没有办法使用plink / ssh运行? #1楼 尝试运行 ssh user @remote sh ./script.unx 。 #2楼 如果机器A是Windows框,则可以将Plink( PuTTY的 一部分)与-m参数一起使用,它将在远程服务器上执行本地脚本。 plink root@MachineB -m local_script.sh 如果机器A是基于Unix的系统,您可以使用: ssh root@MachineB 'bash -s' < local_script.sh 您不必将脚本复制到远程服务器以运行它。 #3楼 <hostA_shell_prompt>$ ssh user@hostB "ls -la" 这将提示您输入密码,除非您已将hostA用户的公钥复制到用户.ssh目录主页上的authorized_keys文件中。 这将允许无密码身份验证(如果在ssh服务器的配置上被接受为auth方法) #4楼 首先,使用scp将脚本复制到Machine B. [user @

How to maintain command after exiting SSH?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 18:22:19
问题 I am using PuTTy to run a node.js server on a shared host (cPanel). My question is whether it is possible to maintain a command even after I completely close PuTTy? My issue is that when I for example type 'nohup node server.js &' and my server runs successfully, the moment I close down PuTTy, my node server goes down again. I would love it if there was a way to continously have my node server running even after exiting PuTTy completely or even shutting down my computer. I have tried the

copy file from unix to windows using PUTTY

随声附和 提交于 2019-12-11 11:17:08
问题 I need to copy a file from windows to UNIX to a specific folder and set the file group (chgrp or something). The problem is that i have more than 16 groups in unix. Is there a way to do it without writing and launching a UNIX script? 回答1: It should work using PSCP. Instructions: Download PSCP.EXE from Putty download page Open command prompt and type set PATH=<path to the pscp.exe file> In command prompt point to the location of the pscp.exe using cd command Type pscp use the following command

Does PSCP work with PowerShell?

若如初见. 提交于 2019-12-11 10:45:38
问题 I have a PowerShell script that produces a text file. At the end, I would like to copy this file to a Linux server. From CMD.EXE, I can use PSCP (from Putty), it works and copies the file. But from PowerShell, either interactively or from a PowerShell batch, PSCP has no visible effect: no error messages and the file is not copied. Even if I run simply .\PSCP.EXE without arguments, on the CMD command line it displays the options, but from PowerShell it does nothing. Can PSCP be used from

display unicode characters on red hat server

巧了我就是萌 提交于 2019-12-11 08:55:49
问题 I get junk characters instead of UTF‐8–encoded Unicode characters on the screen when I connect to my server from Windows 7 machine. I use Secure CRT and Putty. English text has no issues. I will like to know if it is possible to display and sort those words (Indian Language) My Server is Red Hat Enterprise Linux Server release 5.4 (Tikanga) 回答1: Tell your client to use UTF-8. 回答2: To see unicode characters in Putty, please go in: Change settings -> Window -> Translation -> choose UTF8 as

Stop keyboard becoming unresponsive on Pycharm startup

自古美人都是妖i 提交于 2019-12-11 05:55:49
问题 Symptoms: When starting Pycharm: the keyboard seems completely unresponsive the cursor disappears menu items with keyboard bindings are greyed out text selection still works with the mouse, but the cursor is not visible This may be related to another SO question "pycharm with ideavim occasionally makes the keyboard unresponsive" but ideavim is not involved. Set-up: remote desktop connection to a Windows 7 64-bit computer Windows machine has Xming running as a X-window server Using PuTTy to

command history in Rails console over PuTTY

对着背影说爱祢 提交于 2019-12-11 05:52:29
问题 Using script/console in rails 2.3.12 over PuTTY. When I press the "up" arrow to access the last command I wrote, instead of bringing up the command it just prints the weird string "^[[A" to the terminal. Same with other arrows...back arrow prints "^[[D" and forward arrow prints "^[[C" Hoping somebody recognizes these weird codes, and can possibly tell me how to get the arrows working properly. Is this a PuTTY settings issue? 回答1: The up-arrow functionality is supplied by readline. Typically,

Tcl Expect with Putty

别等时光非礼了梦想. 提交于 2019-12-11 04:12:31
问题 Trying to achieve a goal of running putty's plink -telnet via Tcl Expect. When i do a regular: plink -telnet 127.1.1.2 i get an output of the process and am able to properly conduct what i have planned. But when i try the same from Tcl Expect: % package require Expect 5.43.2 % exp_internal 1 % spawn plink -telnet 127.1.1.2 -s 16196 % expect -nocase login expect: does "" (spawn_id exp4) match glob pattern "login"? no expect: timed out there is simply no response from the piped process. Tcl:

Use SSHTool to convert Putty Private Key to OpenSSH private key

浪子不回头ぞ 提交于 2019-12-11 01:06:07
问题 In my java project I create a SSH tunnel with a server. The tunnel is authenticated currently using a putty private key and plink. Does anybody know how to use the java SSHTool library to either convert a putty key to a openssh key or use SSHTool library to create a ssh tunnel using a putty key? Thank you. 回答1: Jsch only accepts opensh keys, not the format that putty creates the keys in. You would have to convert them. Use puttygen.exe to convert to openssh, then use the openssh keyfile in