Questions tagged [putty]

PuTTY is an open source SSH and Telnet client. Use this tag only if your question relates to *programming* PuTTY or using PuTTY-based APIs. Questions relating to using or troubleshooting PuTTY usage are off-topic.

Filter by
Sorted by
Tagged with
836 votes
15 answers
1.3m views

How to export/import PuTTY sessions list?

Is there a way to do this? Or I have to take manually every record from Registry?
s.webbandit's user avatar
  • 16.7k
514 votes
10 answers
670k views

How to convert SSH keypairs generated using PuTTYgen (Windows) into key-pairs used by ssh-agent and Keychain (Linux)

I've generated key pairs using PuTTYgen and been logging in using Pageant, so that I have to enter my pass-phrase only once when my system boots. How do I achieve this in Linux? I've heard of ...
TCSGrad's user avatar
  • 12k
380 votes
12 answers
318k views

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

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 ...
Chris Jacob's user avatar
  • 12.1k
166 votes
11 answers
429k views

Convert PEM to PPK file format

Is there a way to convert PEM files to PPK files? (you may guess that Amazon EC2 gives me a PEM file, and I need to use the PPK format for SSH connectivity).
LoneRanger's user avatar
  • 1,919
135 votes
5 answers
49k views

Using numpad in Vi (Vim) via PuTTY

The numberpad does not work properly when using Vim through PuTTY. Instead of numbers I get y x w v u t s r q
Pykler's user avatar
  • 14.7k
125 votes
13 answers
439k views

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

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?
blue-sky's user avatar
  • 53k
117 votes
21 answers
170k views

git - Server host key not cached

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 ...
Rene Terstegen's user avatar
109 votes
40 answers
345k views

Putty: Getting Server refused our key Error

I created key pair using puttygen.exe (client is windows 8). On server (Ubuntu 12.04.3 LTS), I have put my public key in ~/.ssh/authorized_keys. The public key is this: ssh-rsa ...
PawelRoman's user avatar
  • 6,192
98 votes
2 answers
310k views

How can I copy a file from a remote server to using Putty in Windows? [closed]

How do I copy a file from a remote server to my local Windows system using a Putty session?
Sandeep's user avatar
  • 3,664
94 votes
10 answers
154k views

Change mysql user password using command line

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 ...
user3310572's user avatar
  • 1,069
90 votes
9 answers
460k views

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

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 ...
SobieSki's user avatar
  • 939
87 votes
2 answers
50k views

Linux Terminal: typing feedback gone, line breaks not displayed

From time to time I have to run a command-line tool (a Python script) whose output seems to break my terminal. After the execution is finished, the typing feedback is gone (I can't see what I'm typing)...
E.Z.'s user avatar
  • 6,543
86 votes
7 answers
71k views

Git Bash and Pageant are not using keys

I've got Git for Windows (configured for MinTTY and PuTTY\plink.exe) and PuTTY installed, and I am trying to get it to work with a Bitbucket repository. I've got my SSH key loaded, in Pageant and on ...
Dissident Rage's user avatar
85 votes
6 answers
85k views

Arrow keys in Putty returning ^[[A ^[[D ^[[B instead of moving the cursor

Has anyone else ever had this error in PuTTy? For example, pressing the Up Key now produces: >>> ^[[A Google doesn't let you search for special characters so I'm stumped at finding ...
LittleBobbyTables's user avatar
84 votes
5 answers
112k views

How to paste to Vim when using PuTTY

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 is, I copy something to the clipboard in my local host and want to paste it ...
dj199008's user avatar
  • 1,769
84 votes
1 answer
39k views

what is the difference between various keys in public key encryption

I am confused between various keys used in encryption. Amazon gave me key.pem In linux i generate keys like id_rsa and id_rsa.pub Now putty used key like key.ppk I am really confused what type of ...
user22's user avatar
  • 1,239
83 votes
3 answers
253k views

How to upload files to server using Putty (ssh) [closed]

Can someone help me with commands? I'm trying to upload file to server based on linux.
RaShe's user avatar
  • 1,861
79 votes
4 answers
198k views

How to ssh connect through Python Paramiko with ppk public key

I'm using Paramiko to connect through SSH to a server. Basic authentication works well, but I can't understand how to connect with public key. When I connect with PuTTY, the server tell me this: Using ...
apelliciari's user avatar
  • 8,381
75 votes
3 answers
470k views

Using putty to scp from windows to Linux

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 ...
Chris Phillips's user avatar
71 votes
9 answers
269k views

Automating running command on Linux from Windows using PuTTY

I have a scenario where I need to run a linux shell command frequently (with different filenames) from windows. I am using PuTTY and WinSCP to do that (requires login name and password). The file is ...
Nemo's user avatar
  • 24.9k
70 votes
27 answers
279k views

AWS - Disconnected : No supported authentication methods available (server sent :publickey) [closed]

SSH to my AWS server just broke for both Putty and Filezilla. I'm making some effort for this post to be a comprehensive troubleshooting list, so if you share links to other stack overflow pages, I'll ...
AvadData's user avatar
  • 849
70 votes
6 answers
91k views

ssh_init: Network error: Cannot assign requested address

I am trying to set up a connection and transfer files using putty on a windows 10 platform. I have verified that the default port in putty is 22. When I run the command in the command line to ...
user avatar
70 votes
1 answer
201k views

How to send characters in PuTTY serial communication only when pressing enter?

I am trying to use PuTTY to communicate over my computer's serial line. I have configured the correct serial line, baud rate, number of data bits, stop bits, parity, and flow control, and established ...
tushark's user avatar
  • 871
69 votes
19 answers
200k views

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

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 ...
user3050859's user avatar
68 votes
8 answers
135k views

Import and insert sql.gz file into database with putty

I want to insert a sql.gz file into my database with SSH. What should I do? For example I have a database from telephone numbers that name is numbers.sql.gz, what is this type of file and how can I ...
babak faghihian's user avatar
65 votes
4 answers
112k views

Create a PEM from a PPK file [duplicate]

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 ...
CMOS's user avatar
  • 2,837
62 votes
1 answer
36k views

Vim incremental search

I'm using putty on a Linux machine. My usual method for searching in vi is entering the slash /, then my search string, enter, then go through all the matches by n or shift + n. I was wondering if vi ...
Michael Sanchez's user avatar
58 votes
2 answers
40k views

Bind Ctrl+Tab and Ctrl+Shift+Tab in tmux

I'm trying to a get a ctrl+tab and ctrl+shift+tab binding to work inside of a tmux session (I'm also using PuTTY). I already went through the pains of having to recompile PuTTY so it would send ctrl ...
dook's user avatar
  • 1,233
48 votes
2 answers
60k views

PuTTYgen doesn't give me the option for SSH-2 RSA

I've been accessing my AWS EC2 instance from Ubuntu for years with no issues. I'd like to also connect to it from a Windows machine. The procedure seems straight forward... copy my *.pem file to the ...
Skinner's user avatar
  • 1,481
45 votes
4 answers
50k views

PuTTY: Change default SSH login directory [closed]

In Windows, I use PuTTY to log in a Linux-based remote server via SSH. Is is possible to change the default directory entry point I get to after I connect and login? (That would be a nice time saver....
Bernd's user avatar
  • 11.3k
42 votes
11 answers
172k views

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

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@...
Colonel Beauvel's user avatar
41 votes
6 answers
66k views

unable to get SSH keys working between sourcetree and github

I was able to create a key and connect to github following these instructions via the command prompt successfully: https://help.github.com/articles/generating-ssh-keys However, when I try to connect ...
turbo2oh's user avatar
  • 2,869
41 votes
12 answers
100k views

Putty won't cache the keys to access a server when run script in hudson

I had a simple automation process to write which needed to copy a few files from linux server to windows via SSH. This can be accomplished using putty. SSH, as part of the protocol, verifies the host’...
Charlotte Xu's user avatar
40 votes
7 answers
16k views

byobu Hard Status line scrolls the screen when updating

Wanting to give byobu a looksee as a screen 'update' of sorts. I start it with byobu and instead of the status line sitting at the bottom of the screen, everytime it updates it pushes to an ...
monsto's user avatar
  • 1,208
40 votes
8 answers
36k views

Commandline overwrites itself when the commands get too long

I'm using PuTTY to log into a Debian server. I have this odd problem that when a command I'm typing gets too long, it doesn't wraparound and start a new line. Instead, it starts at the beginning of ...
Janak's user avatar
  • 5,085
40 votes
2 answers
117k views

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

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
Shinu Thomas's user avatar
  • 5,256
40 votes
3 answers
254k views

Best way to script remote SSH commands in Batch (Windows)

I am looking to script something in batch which will need to run remote ssh commands on Linux. I would want the output returned so I can either display it on the screen or log it. I tried putty.exe -...
leeman24's user avatar
  • 2,799
39 votes
14 answers
204k views

Forward X11 failed: Network error: Connection refused

I have a VPS which OS is CentOS6.3. I want to run startx via PuTTY and Xming. But, it produces this error: PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused ...
TJM's user avatar
  • 739
39 votes
4 answers
54k views

PuTTY configuration equivalent to OpenSSH ProxyCommand

I'm just trying to use PuTTY to get an SSH connection to my servers. These servers allow incoming SSH connection only from another specific server ("MySshProxyingServer" in example below). Using ...
veiL's user avatar
  • 393
38 votes
1 answer
47k views

How to submit Plink "Access granted. Press Return to begin session" prompt automatically

I'm writing a simple Windows batch script to allow me to execute some Linux command on my remote server with the help of plink.exe. call set argument1=plink -pw mypwsswd [email protected] cd ~/...
Yves's user avatar
  • 12k
38 votes
5 answers
107k views

How to create SSH tunnel using PuTTY in Windows?

I need to create SSH tunnel with PuTTY in Windows, that would do the same as this command in Linux: ssh -fN -L 2000:SomeIp:2000 myusername@myLinuxBox I tried many options in PuTTY, including setting ...
DixieFlatline's user avatar
37 votes
3 answers
48k views

PuTTY Shortcuts to Minimize, Maximize, Restore, and Move the Window

The Alt+Space command doesn't work on Putty (at least for me). So, if I've to minimize or maximize my PuTTY windows, I'll have to use the mouse which is very uncomfortable. Did anyone get around this ...
Srikanth's user avatar
  • 12k
37 votes
8 answers
44k views

How to convert ed25519 private key to putty ppk?

I want to convert an ed25519 private key (which is generated by ssh-keygen command) to a ppk file. But I got the error. Couldn't load private key (unrecognized cipher name) Can someone help me? ...
takaomag's user avatar
  • 1,605
37 votes
3 answers
69k views

How to find /dev/ name of USB Device for Serial Reading on Mac OS?

I am trying to plug in a device into my Macbook and connect to it to read it's serial port. I know the device connects on baudrate 115200. Currently, I run the command ioreg -p IOUSB -l -b | grep -E ...
M.S.'s user avatar
  • 923
36 votes
5 answers
106k views

SourceTree on Windows: How to connect to SSH?

I have an SSH access to my web hosting, it works great with PuTTY (I just had to enter my domain, username and password), however it seems much more complicated with SourceTree. While PuTTY has a ...
Community's user avatar
  • 4,982
34 votes
1 answer
54k views

Unable to use key file

I generated a username using the following command ssh -keygen -b 1024 -f user -t dsa and now I'm trying to use putty to login with my private key but it doesn't work . I receive the following error ...
Jone Jamson's user avatar
33 votes
1 answer
43k views

"Unable to use key file "...\id_rsa" (OpenSSH SSH-2 private key)" when authenticating with PuTTY [closed]

I have setup custom SSH keys on target Linux host2. I'm able to passwordless ssh from Linux host1 to host2 using the below command. ssh -i /app/misc/myssh_keys/my_id_rsa myuser@host2 I then copy ...
Ashar's user avatar
  • 3,252
32 votes
4 answers
35k views

Why is the "Load putty key" field in TortoiseGit disabled?

I would like to connect to my repository using an SSH key instead of a username & password. However when I try to do this in TortoiseGit I can not enter the key because the "Load Putty Key" is ...
Mihir Bhatt's user avatar
  • 3,035
32 votes
4 answers
111k views

How can I add an already generated SSH key to git bash?

I have an SSH key saved in D:/keys folder. I want to add it to my git bash. All the tutorials I found is how to generate SSH key using gitbash and load it to github/gitlab. I generated my SSH key ...
Samiul Alam's user avatar
  • 2,274
31 votes
2 answers
21k views

How to set a custom color to folded highlighting in .vimrc (for use with putty)

Adding the following to .vimrc works :hi Folded ctermbg=Grey but it's still too bright and prominent, so we want to specify a more specific color triplet instead, like so: :hi Folded ctermbg=#...
silvernightstar's user avatar

1
2 3 4 5
46