38
votes
Accepted
openssh - Adding an ssh key from putty to authorized_keys
There is an accepted answer for this question, but I think it's worth noting that there is a way to do this using the ssh-keygen tool rather than sed:
ssh-keygen -i -f ssh2.pub > openssh.pub
...
28
votes
Is there a way to permanently set the font and window size in PuTTY?
Once you are done with your appearance and font settings save that to Default Settings session. This will help all your next session to open with the default settings you saved. Otherwise, you need to ...
26
votes
How to recover from "Too many Authentication Failures for user root"
For me this problem was solved by creating the below ssh_config for the host I was connecting to.
(~/.ssh/config)
Host example
HostName example.com
User admin
IdentityFile ~/path/to/ssh_key_rsa
...
25
votes
Accepted
How can I set PuTTY's window title to the name of the loaded session?
To change the PuTTY SSH session window title (one by one manually by the PuTTY GUI):
For Windows & Debian
Load a session from PuTTY.
On left side tree menu, click on: Window → ...
23
votes
How to fix PuTTY showing garbled characters?
After 15 years I got annoyed once more and googled around again, found this, chose
change settings → window → translation → remote char set → "use font encoding"
and that fixed it.
22
votes
openssh - Adding an ssh key from putty to authorized_keys
Remove the BEGIN and END lines
Optionally remove the Comment line (you can keep note of this if you want to add it as a comment later)
Remove all remaining line-breaks
Add the text "ssh-rsa" to the ...
20
votes
Accepted
Run remote command with putty
You might want to use plink (which is shipped with putty) instead of putty for this.
Quote from the documentation:
Plink is a command-line connection tool similar to UNIX `ssh'. It is
...
17
votes
How to fix PuTTY showing garbled characters?
Window → Translation → "Enable VT100 line drawing even in UTF-8 mode".
This fixes the display of both mc and wavemon for me.
15
votes
Used PowerShell to change my RHEL root passwords via PuTTY, but I don't know what I changed my password to
The problem is you are trying to pass SecureString into something that expects a standard string. The Password property is in SecureString format, you won't be able to pass this to plink, it will just ...
14
votes
Accepted
SSH "lag" in LAN on some machines, mixed distros
Typically this is a sign of Nagle's algorithm, you can turn that socket option off.
(I have seen similar TCP delays between Linux and Windows before in other cases as well. In one case it was caused ...
12
votes
How to recover from "Too many Authentication Failures for user root"
To temporarily address this issue until things can be fully addressed as noted elsewhere, you can reset a user's PAM tally so they can try again:
pam_tally --reset --user <USERNAME>
pam_tally2 -...
11
votes
Accepted
How to SSH to a remote server using a private key on Linux?
This is a putty key. It will not work with *nix ssh clients. You need to use PuTTYgen or similar software in order to convert your key to openssh format.
10
votes
How to fix PuTTY showing garbled characters?
The two basic factors are Window/Translation UTF-8 in putty and locale settings in Linux, as instructed here and many other places.
In addition, it may help in putty to set Connection/Data/Terminal-...
10
votes
How to fix PuTTY showing garbled characters?
For all you poor old VMS guys that end up here:
PuTTY → Window → Translation → Remote character set → DEC-MCS
worked for me.
10
votes
Accepted
Putty Kerberos/GSSAPI authentication
On Windows machines that are part of an Active Directory domain, users receive their Kerberos ticket-granting ticket when they log into Windows, and PuTTY is able to use that for authentication if ...
8
votes
Accepted
Host keeps asking for password when using SSH Keys with PuTTY for Windows
The main issue is here:
Event Log: Server refused our key
This can be caused by incorrect permissions on .ssh/authorized_keys, or an invalid key.
The permission can be solved using this:
chmod -...
8
votes
How to SSH to a remote server using a private key on Linux?
openssh and PuTTY are using different key types (but you can convert between them). In PuTTYgen you need to go to Conversions->Export OpenSSH, export your private key and store it as id_rsa.
More ...
8
votes
XMing "can't open display" error
I had to put in /etc/ssh/sshd_config the following:
X11UseLocalhost no
Otherwise the display variable wouldn't get set. Now it works for me.
7
votes
How can I set environment variables when I ssh login to my Unix box by passing custom arguments?
You can enter environment variables in the PuTTY configuration under Connection -> Data.
But this works only under certain conditions. Quote from the
documentation:
The Telnet protocol provides a ...
7
votes
How to recover from "Too many Authentication Failures for user root"
I fixed this problem in my systems by running following commands:
eval $(ssh-agent)
ssh-add ~/.ssh/keyname
Then trying ssh in remote machine
7
votes
Accepted
PuTTY slow connecting to Linux SSH server
I'd also look at your DNS... maybe. Can the server you're connecting to resolve DNS properly? Could you add a temporary host entry with your source IP in the server to test?
See: SSH takes about 30 ...
7
votes
AWS Instance Password lost after Login
Your screenshot says "server refused our key". That means you don't have the private key for your instance. I'm not sure there is a password.
You can try something like this to mount the volume then ...
7
votes
Accepted
How to use ssh hostkey from a Linux server with plink.exe on a Windows host?
You can use plink itself to get the host key:
c:\> plink -v -batch host
Connecting to 1.2.3.4 port 22
We claim version: SSH-2.0-PuTTY_Release_0.68
Server version: SSH-2.0-OpenSSH_7.6p1 Ubuntu-...
6
votes
How to recover from "Too many Authentication Failures for user root"
I also faced the same issue. This can easily happen if you are using Pageant and have a large number of keys loaded into it, since these servers count each offer of a public key as an authentication ...
6
votes
how to tunnel Windows Remote Desktop through ssh using a linux box?
One can use internal ssh tunneling from Remmina remote desktop client too.
If you can ssh to some linux server using ssh keys and that server have open 3389 (RDP) port for packets coming from your ...
6
votes
How to fix PuTTY showing garbled characters?
I was looking for many solutions for this when using Docker machine (both locale and on machines set up by system administrator). In my Putty everything was fine (I had UTF-8), I was using also other ...
6
votes
Using SSH Keys with Kerberos
PuTTY 0.61 or newer can use Kerberos/GSSAPI tickets (instead of public-key authentication) to authenticate to an SSH server. To enable this, go in PuTTY's configuration menu to "Connection | SSH | ...
6
votes
SSH connecting on port 22 but times out on 443
When you telnet (or nc) to a port that has an ssh server listening, you should obtain a string of characters, something like
SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2
If you don't obtain a string like ...
6
votes
Accepted
Converting SSH command to a PuTTY command
I am trying to translate the SSH command ssh -N -L 1521:server1.com:1521 [email protected] into PuTTY.
If all you need is just forwarding port - you can use plink instead
> plink.exe -ssh -N -...
6
votes
Accepted
XMing "can't open display" error
Try to set the display location to localhost:0.0 instead of localhost:0.
If this wont work, at /etc/ssh/sshd_config check for LogLevel variable to be set to LogLevel INFO.
Now you could retry your ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
putty × 468ssh × 273
linux × 74
windows × 52
ssh-tunnel × 32
ubuntu × 28
ssh-keys × 19
centos × 18
amazon-ec2 × 16
plink × 15
amazon-web-services × 14
debian × 12
sftp × 12
port-forwarding × 11
mysql × 10
windows-7 × 10
command-line-interface × 10
shell × 10
terminal × 10
gnu-screen × 10
scp × 9
winscp × 9
networking × 8
bash × 8
proxy × 8