Questions tagged [ssh]
Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.
10,857 questions
1184
votes
25
answers
1.5m
views
How to tell git which private key to use?
ssh has the -i option to tell which private key file to use when authenticating:
-i identity_fileSelects a file from which
the identity (private key) for RSA or DSA authentication is read.
The ...
776
votes
16
answers
347k
views
Why does macOS keep asking for my SSH passphrase ever since I updated to macOS Sierra (10.12)?
It used to remember the passphrase, but now it's asking it to me each time.
I've read that I need to regenerate the public key with this command, which I did:
ssh-keygen -y -f id_rsa > id_rsa.pub
...
527
votes
16
answers
865k
views
How to fix warning about ECDSA host key
I'm trying to setup password-less SSH on an Ubuntu server with ssh-copy-id myuser@myserver, but I'm getting the error:
Warning: the ECDSA host key for 'myserver' differs from the key for the IP ...
495
votes
18
answers
1.0m
views
Windows SSH: Permissions for 'private-key' are too open
I've OpenSSH 7.6 installed in Windows 7 for testing purposes. SSH client & server work just fine till I tried to access one of my AWS EC2 box from this windows.
It seems like I need to change the ...
494
votes
4
answers
184k
views
What is randomart produced by ssh-keygen?
When you generate a key, you get "randomart" from newer versions of OpenSSH. I am unable to find an explanation of why, and what I'm supposed to use it for.
Generating public/private rsa key pair.
...
485
votes
18
answers
510k
views
An SSH tunnel via multiple hops
Tunneling data over SSH is pretty straight-forward:
ssh -D9999 [email protected]
sets up port 9999 on your localhost as a tunnel to example.com, but I have a more specific need:
I am working ...
465
votes
7
answers
1.4m
views
How do I exit an SSH connection?
I’m connecting to a server via SSH to send a message to a socket server using a command like:
ssh 181.169.1.2 -p 5566
After the connection is established and I write the message and send it I can’t ...
370
votes
19
answers
350k
views
How to reliably keep an SSH tunnel open?
I use an SSH tunnel from work to go around various idiotic firewalls (it's ok with my boss :)). The problem is, after a while the SSH connection usually hangs, and the tunnel is broken.
If I could at ...
336
votes
9
answers
598k
views
What is a SSH key fingerprint and how is it generated?
I always find that I get this message when I ssh into a new machine:
12:f8:7e:78:61:b4:bf:e2:de:24:15:96:4e:d4:72:53
What does it stand for? Will every machine have the same fingerprint every time?
...
328
votes
11
answers
1.1m
views
Remove key from known_hosts
I built several virtual machines during the last few weeks. The problem is, the .ssh/known_hosts gives me the Man in the middle warning. This happens because another fingerprint is associated with the ...
308
votes
15
answers
383k
views
Too many authentication failures for *username*
I have a hostgator account with ssh access enabled. When trying to upload the generated .pub key file with this command:
rsync -av -e "ssh -p2222" /home/user/.ssh/key.pub [email protected]:.ssh/...
267
votes
12
answers
167k
views
Is there a way for one SSH config file to include another one?
In case it matters:
OS: Ubuntu 10.04
SSH: OpenSSH_5.3p1 Debian-3ubuntu5
I'd like one SSH config file to include another one. The use case would be to define whatever I want in my default .ssh/config ...
262
votes
10
answers
327k
views
How can I avoid SSH's host verification for known hosts?
I get the following prompt everytime I try to connect a server using SSH. I type "yes", but is there a way to aovid this?
The authenticity of host '111.222.333.444 (111.222.333.444)' can't be ...
260
votes
5
answers
505k
views
How to convert .ppk key to OpenSSH key under Linux?
I know that is possible to convert .ppk under puttygen in Windows, but how to do that on Linux? Is this possible ?
255
votes
8
answers
194k
views
Way to avoid ssh connection timeout & freezing of GNOME Terminal
When I connect via ssh to certain servers, it timeouts and "freezes" the terminal (doesn't accept input, doesn't disconnect, can't Ctrl-C to kill the ssh process or anything).
This is in Ubuntu's ...