putty

Vim show strange  characters over putty

久未见 提交于 2019-12-02 17:31:50
When I am editing a file in Vim I have some lines with a bunch of  displayed. I have already checked the encoding with :set encoding It says utf8 encoding=utf8 Anybody knows where this is comming from and how to stop this behaviour? Regards, Jeremy Make sure that PuTTY is set for UTF-8 as well. You can do this under Window -> Translation -> Remote Character Set. You may need to choose a font that supports a reasonable portion of the Unicode range as well -- Terminal isn't necessarily going to cut it. Does it appear when you type the British Pound symbol? Try changing your encoding: :set

Scp command syntax for copying a folder from local machine to a remote server [closed]

ぃ、小莉子 提交于 2019-12-02 17:26:28
I am using putty for copying files from local machine to remote server.My folder is in C:/site can any one give syntax for copying folder from C:/site to remote server using scp scp -r C:/site user@server_ip:path path is the place, where site will be copied into the remote server EDIT : As I said in my comment, try pscp , as you want to use scp using PuTTY . The other option is WinSCP In stall PuTTY in our system and set the environment variable PATH Pointing to putty path. open the command prompt and move to putty folder. Using PSCP command Please check this 来源: https://stackoverflow.com

Change mysql user password using command line

我与影子孤独终老i 提交于 2019-12-02 17:22:28
I'm trying to update the password for a database user using the command line, and it's not working for me. This is the code I'm using: mysql> UPDATE user SET password=PASSWORD($w0rdf1sh) WHERE user='tate256'; Could someone tell me what's wrong with this code. hellboy In your code, try enclosing password inside single quote. Alternatively, as per the documentation of mysql, following should work - SET PASSWORD FOR 'jeffrey'@'localhost' = PASSWORD('cleartext password'); FLUSH PRIVILEGES; The last line is important or else your password change won't take effect unfortunately. EDIT: I ran a test

Create a PEM from a PPK file [duplicate]

百般思念 提交于 2019-12-02 16:33:54
This question already has an answer here: How to convert SSH keypairs generated using PuTTYgen (Windows) into key-pairs used by ssh-agent and Keychain (Linux) 8 answers So there are plenty of tutorials on how to convert a PEM to a PPK using puttyGen. However my issue is that my windows machine had the only PEM copy and I converted it into a PPK and deleted it. Now I need to figure out how to convert a PPK into a PEM so that my mac can ssh into the server. I still have access to the server so I could also just make a new key if I had to, anyone know how to convert PPK to PEM? Emizen Tech

how to paste to vim when using putty

你离开我真会死。 提交于 2019-12-02 16:05:33
I am using putty to connect a remote host and editing via vim. I meet a trouble when I try to paste something to vim. That's, I copy something to clipboard in my local host and want to paste it to the vim in the remote host. How to do that? ps: I am using putty! So, I open a vim window via putty. The very need is that I want to copy something in my local host and paste it to the vim editor opened by putty. That's all. Thanks! markcial Try with Ctrl + Shift + V or with middle click with a 3 button mouse EDIT What about? Shift + Ins Source : https://superuser.com/questions/180043/paste-the

SSH to Amazon EC2 instance using Putty in windows

五迷三道 提交于 2019-12-02 15:50:06
I am a newbie to Amazon web services, was trying launch an Amazon instance and ssh to it using putty from windows. These are the steps I followed, Created a key pair. Created security group with rule for SSH and HTTP. Launched and instance of EC2 using the above key pair and security group. Using puttygen converted the *.pem file to *.ppk Using putty tried connecting to the public dns of the instance and provided the *.ppk file. I logged in using 'root' and 'ec2-user', and created the ppk file using SSH1 and SSH2, for all these attempts I get the following error in putty, "Server refused our

Putty - Delete files dynamically using C#

*爱你&永不变心* 提交于 2019-12-02 14:13:31
问题 I am working on a Windows app with C# as a programming langugage. Requirement is to login to putty dynamically delete old files from specific location I am currently using below code to login to putty, but how do i ran the delete command ?? string hostname = "hostname"; string login = "login"; string password = "password"; ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = @"C:\Putty\putty.exe"; startInfo.Arguments = string.Format("{0}@{1} -pw {2}", login, hostname,

How can I copy file from Putty to windows? [closed]

家住魔仙堡 提交于 2019-12-02 14:02:50
I opened putty and connected to the server with my login ID and password. And trying to copy a file which is present there to my local windows system. Sandeep It worked 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 to copy file form remote server to the local system pscp [options] [user@]host:source target So to copy the file /etc/hosts from the server example.com as user fred to the file c:\temp

Python 3.4.3 modules installation in linux error

我的梦境 提交于 2019-12-02 13:02:15
I just installed the python-3.4.3 via putty. I'm very new to Linux and it's operation. I created a script for docx operation in windows and it's working great but my manager wants to host it into the server, so that everyone in my team can use that. My problem is installing the packages into the Linux. Here i uploaded the image that what I'm getting. Please let me know the correct way. Installing on Debian and Ubuntu (Trusty Tahr and newer) for Python 3.x Run the following commands from a terminal: sudo apt-get install python3-pip python-dev build-essential sudo pip install --upgrade pip sudo

TortoiseGit - Multiple GitHub repositories with different key pairs each

帅比萌擦擦* 提交于 2019-12-02 08:09:59
I have 3 GitHub repositories: {repo1, repo2, repo3}, each one with a different public key as Deploy key under each repository settings. On a remote Linux server (I connect to it via PuTTY from my local Windows 7 machine) I have all these repositories configured with the file: ~/.ssh/config following this guide: https://gist.github.com/jexchan/2351996 They works perfectly there, so don't worry about that. My problem is on my local computer, where I'm using Windows 7 with TortoiseGit . For each repository I have TortoiseGit configured like below: If I create a key pair for the repo1 and set it