putty

Transfer files to/from session I'm logged in with PuTTY

我只是一个虾纸丫 提交于 2019-11-28 16:38:11
问题 I'm logged into a remote host using PuTTY. What is the command to transfer files from my local machine to the machine I'm logged into on PuTTY? 回答1: This is probably not a direct answer to what you're asking, but when I need to transfer files over a SSH session I use WinSCP, which is an excellent file transfer program over SCP or SFTP. Of course this assumes you're on Windows. 回答2: Click on start menu. Click run In the open box, type cmd then click ok At the command prompt, enter: c:>pscp

How to best display in Terminal a MySQL SELECT returning too many fields?

混江龙づ霸主 提交于 2019-11-28 14:55:01
I'm using PuTTY to run: mysql> SELECT * FROM sometable; sometable has many fields and this results in many columns trying to be displayed in the terminal. The fields wrap onto the next line so it is very hard to line up column titles with field values. What solutions are there for viewing such data in terminal? I don't have nor want access to phpMyAdmin - or any other GUI interfaces. I'm looking for command-line solutions such as this one: Save MySQL Query results into text or CVS file Rytmis Terminate the query with \G in place of ; . For example: SELECT * FROM sometable\G This query displays

Python编写的ssh客户端[类似putty]

丶灬走出姿态 提交于 2019-11-28 14:49:43
转载请注明出处: http://blog.csdn.net/jmppok/article/details/17588381 windows下可以通过putty以ssh方式连接linux主机。但putty也有一些问题:比如没有保存session,乱码等等。 偶然发现Python也有ssh模块,学习的同时尝试使用python编写一个类似putty的ssh客户端。 1.环境准备 python2.7 + PyCrypto + paramiko + ecdsa 后面三个是python的扩展模块,实现了ssh连接功能。 需要分别下载这三个模块,安装。 PyCrypto下载地址:https://www.dlitz.net/software/pycrypto/ paramiko下载地址:http://www.lag.net/paramiko/ edssa下载地址: https://pypi.python.org/pypi/ecdsa/0.9 安装十分简单,进入模块根目录执行 python setup.py build install命令即可。 说明:linux下可按此安装。windows下我未编译通过,可使用编译好的版本,直接拷贝至Lib\site-packages下即可。 下面是一个windows下编译好的版本: win7下编译好的python ssh模块 2.原理 1

How to export/import PuTTy sessions list?

白昼怎懂夜的黑 提交于 2019-11-28 13:06:39
问题 Is there a way to do this? Or I have to take manually every record from Registry? 回答1: Export cmd.exe , require elevated prompt: Only sessions: regedit /e "%USERPROFILE%\Desktop\putty-sessions.reg" HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions All settings: regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham Powershell: Only sessions: reg export HKCU\Software\SimonTatham\PuTTY\Sessions ([Environment]::GetFolderPath("Desktop") + "\putty-sessions.reg")

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

Automating command/script execution using PuTTY

和自甴很熟 提交于 2019-11-28 09:33:50
These are the things I need to do: Open putty.exe Enter Username and password. Run a shell script. I am using UFT (VB Scripting). I am able to open PuTTY but not able to enter username and password or run any commands using UFT. Is there any other way I can achieve this? I have searched it and found that we can use Plink. Then the problem would be that the whole team will have to install Plink for that purpose. And that is not possible. Thanks in advance. PuTTY has the -m switch , that you can use to provide a path to a file with a list of commands to execute: putty.exe user@example.com -m c:

Makefile error make (e=2): The system cannot find the file specified

为君一笑 提交于 2019-11-28 08:28:52
I am using a makefile in windows to push some files on a Unix server (here a text file "blob.txt" in the same folder of my makefile). My makefile script is: setup: pscp blob.txt username@hostname:/folder/ I start a command prompt, go in the folder where blob.txt and the makefile are present and type: make setup Which results in: pscp blob.txt username@hostname:/folder/ process_begin: CreateProcess(NULL, pscp blob.txt username@hostname:/folder/, ...) failed. make (e=2): The system cannot find the file specified. make: *** [setup] Error 2 In a #fail ... whereas if I enter directly the command in

How to download a file from my server using SSH (using PuTTY on Windows)

泪湿孤枕 提交于 2019-11-28 05:40:32
When I try downloading a file from my server onto my computer, it actually downloads the file onto the server. (Note I am already SSH'd into my server before typing this command. I've watched tutorials on YouTube and people are using their terminal without SSHing into any particular server, however I don't think I can do this with PuTTY on Windows?) scp -r -P2222 kwazy@mywebsite.com:/home2/kwazy/www/utrecht-connected.nl ~/Desktop/ The problem is that I am specifying the location to download the file as only ~/Desktop/ This creates a folder called Desktop in my server, instead of copying the

Google server putty connect 'Disconnected: No supported authentication methods available (server sent: publickey)

老子叫甜甜 提交于 2019-11-28 05:11:16
I'm trying to connect to my Debian Google Compute Engine server through PuTTy (I've tried other alternatives too) but when I do I get the error "Disconnected: No supported authentication methods available (server sent: publickey) The google server came without a username and password, only a url to automatically login to their own terminal. Elliptical view I had PuTTY working and then one day got this error. Solution : I had revised the folder path name containing my certificates (private keys), and this caused Pageant to lose track of the certificates and so was empty. Once I re-installed the

Using putty to scp from windows to Linux

空扰寡人 提交于 2019-11-28 04:28:36
I'm trying to test some C code that I'm writing. The only issue is that the code needs to be executed on a remote machine. My laptop is pretty old, and there is no driver for my wireless card available for Ubuntu, so booting into Linux to circumvent this problem isn't an option. Here's my question: I'm using putty to SSH into the remote machine, and I'm writing my code on Notepad++. The location of my file is: C:\Users\Admin\Desktop\WMU\5260\A2.c My problem is that when I use the command scp C:\Users\Admin\Desktop\WMU\5260\A2.c ~ I get the error could not resolve hostname C:. Name or service