Questions tagged [ssh-keys]

452 questions
512
votes
14 answers

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 address '192.168.1.123' What's causing this, and how…
Cerin
  • 8,746
  • 16
  • 54
  • 65
248
votes
4 answers

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 ?
marioosh
  • 3,521
  • 6
  • 26
  • 30
101
votes
4 answers

Using Multiple SSH Public Keys

I have a personal account and a company account on Unfuddle. On Unfuddle SSH keys can only be used on a single account, so I need to create a seperate SSH key on my laptop for both accounts. I ran ssh-keygen -t rsa to generate two keys with…
Dave Long
  • 1,145
  • 3
  • 9
  • 11
94
votes
7 answers

How to store SSH keys?

I've started using SSH keys instead of passwords just recently (thanks to GitHub, of course), so please keep in mind that I'm pretty new to this whole concept. Currently my keys simply lie under ~/.ssh, but I'm not sure if this is a good practice.…
Anton Strogonoff
  • 1,205
  • 1
  • 10
  • 10
93
votes
6 answers

How to make git not prompt for passphrase for ssh key?

I'm using git bash and I setup ssh key using ssh-keygen and each time I do something with a repo git ask me for passphrase for /c/Users/jankiewj/.ssh/id_rsa. Is there a way to disable that passphrase. EDIT: I've edited original title (removed…
jcubic
  • 2,833
  • 2
  • 23
  • 23
90
votes
17 answers

SSH-Key authentication fails

I'm trying to ssh into a CentOS server which I have no control over.. the admin has added my public key to the server and insists the fault lies with me but I can't figure out what is wrong. Config in .ssh: tim@tim-UX31A:~$ cat ~/.ssh/config User…
Tim
  • 901
  • 1
  • 6
  • 3
70
votes
2 answers

Read Only access to GitHub repo via SSH key

I want to generate an SSH key with only READ permissions to be used with my GitHub account is it possible? or should I create another account with only read permission?
jibe
  • 803
  • 1
  • 6
  • 5
52
votes
5 answers

Bad owner or permissions on ssh config file

I have realized that I am no longer able to connect to the webserver at x.x.202.50. Yesterday I have changed the following ssh configuration file: /share/homes/admin/.ssh/config by adding the following settings: # ssh (secure shell) configuration…
symp Ioio
  • 621
  • 1
  • 5
  • 4
39
votes
5 answers

SSH: "Permissions 0644 for 'my_key.pub' are too open."

Why is 0644 i.e. -rw-r--r-- too open for a SSH key? Also I could not find any false permissions on the .ssh directory (0700) or the home directory (0731). Btw I'm getting this error when testing the paraphrase of a key via ssh-keygen -y -f…
user2820379
  • 580
  • 1
  • 4
  • 11
35
votes
2 answers

Configure ssh-key path to use for a specific host

When connecting via SSH my terminal wants to use id_rsa by default. I don't want to use that key for this particular server. So I am forced to specify the proper key path when connecting: This works to connect: ssh -i /Users/myuser/.ssh/mykey …
MastaP
  • 453
  • 1
  • 4
  • 5
32
votes
4 answers

Get the fingerprint of an existing SSH public key

This Question asks about getting the fingerprint of a SSH key while generating the new key with ssh-keygen. But how does one get determine the fingerprint of an existing public key in a .pub file? ➥ How to get: SHA256 hash of an existing…
Basil Bourque
  • 794
  • 2
  • 12
  • 21
32
votes
2 answers

Missing ~/.ssh Folder in macOS High Sierra

I'm trying to find my ~/.ssh folder, but can't. I'm familiar with terminal so I've been going through my filesystem and can't find it anywhere. Has it relocated in the file tree or is my computer just funky? I need to find my private key.
Alex Schneider
  • 421
  • 1
  • 4
  • 3
31
votes
6 answers

To use ssh-id-copy do you need both id_rsa.pub and id_rsa?

I am trying to setup a second access ssh key for a friend. He sent me his id_rsa.pub. ssh-copy-id -i id_rsa.pub root@123.123.123.123 /usr/local/bin/ssh-copy-id: ERROR: failed to open ID file './id_rsa': No such file or directory Do I need him to…
user269023
28
votes
3 answers

Running ssh-keygen without human interaction?

Would it be possible to run ssh-keygen without human interaction? I have a shell script that takes care of server deployment from start to finish, but ssh-keygen is the only remaining piece that still requires my input. Would it be possible to feed…
Hayek
  • 1,975
  • 3
  • 21
  • 26
28
votes
3 answers

Connect to server using SFTP and a public SSH key using FileZilla on Windows

Is it possible to generate an SSH key on a Windows machine and then use that key to connect to a server using SFTP via FileZilla? This is all working with my Mac, but I have a client that is stuck in a Windows environment. Our server does not have…
macek
  • 6,035
  • 17
  • 46
  • 57
1
2 3
30 31