Questions tagged [ssh-keys]
The ssh-keys tag has no usage guidance.
25
questions
252
votes
4
answers
449k
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 ?
15
votes
1
answer
6k
views
How can I force SSH to ignore the IdentityFile listed in "Host *" for one specific host?
My SSH config file is set up to use a specific IdentityFile in the Host * section as the default key. For one particular host, I want to offer a different key (and only that key, never the default key)...
95
votes
17
answers
261k
views
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 ...
18
votes
1
answer
6k
views
What does ssh-keygen [-o] do?
Gitlab lists their ssh-keygen commands with the -o flag:
https://docs.gitlab.com/ee/ssh/
But I cannot find -o in any help page or man page.
What does it do?
8
votes
1
answer
2k
views
Marketing Cloud SSH Key Generation: Inconsistency between PuTTY and ssh-keygen
After spending two months back and forth with Salesforce Support, I have finally worked out that in order to upload an SSH key in Key Management, you have to use
PuTTYgen, not ssh-keygen (on Mac).
...
6
votes
4
answers
7k
views
SSH asks for password, even with public key installed [duplicate]
Possible Duplicate:
Problem with shared ssh keys
I have set up pub key authentication between two servers. Everything should work, but I am still asked for the password.
Here's parts of my sshd ...
101
votes
4
answers
75k
views
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 ...
29
votes
3
answers
140k
views
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 ...
7
votes
1
answer
3k
views
Do I need to keep the comment at the end when I copy SSH public keys to another machine?
Say I have a public RSA SSH key that looks like:
ssh-rsa ijvoienvejfvmiejnci3onrvejviewlonvcljnrijcnreionv me@machine
If I’m copying this key to share with another machine, do I include the comment ...
3
votes
1
answer
11k
views
SSH: fails with a private key, works with a copy of the key located elsewhere
I want to establish a SSH connection between two Linux machines: client & server. I am using root account on both machines, and their linux distro is CentOS 7.
I generated a pair of private-...
520
votes
15
answers
800k
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 ...
97
votes
7
answers
111k
views
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 ~/....
97
votes
6
answers
144k
views
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.
...
36
votes
6
answers
77k
views
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 [email protected]
/usr/local/bin/ssh-copy-id: ERROR: failed to open ID file './...
14
votes
1
answer
15k
views
How do I use KeePassXC as an SSH agent?
There's an SSH Agent tab in KeePassXC's options. How do I use it to manage my SSH keys across multiple Windows and Linux machines?
12
votes
8
answers
125k
views
Disconnected: no supported authentication methods available
I have the same exact problem described in this thread, but the answer accepted there is not the right one for me, because the user's home directory is local.
I think that I configured everything ...
10
votes
1
answer
7k
views
Tell git which private key to use for a user without home folder
I was reading the question Tell git which private key to use, and the answer doesn't apply for a case were the user doesn't have any home directory.
We're setting up a Jenkins server right now, and ...
5
votes
1
answer
2k
views
How do I get ssh to use only one key from ssh-agent?
I need to use two different ssh keys when connecting to the same host.
The machine I need to use to connect (because of ip address restrictions) is not the machine where the ssh keys are stored, so I ...
4
votes
2
answers
61k
views
Remove all the keys (credentials) from a PC
I gonna have to change my Windows PC with a colleague at office.
I've added a few rsa ssh keys while playing around with git, github, heroku and a few others.
What'd be the best way to remove all my ...
2
votes
1
answer
5k
views
ssh how stop Permission denied (publickey)
In every process SSH return Permission denied (publickey).
ssh-copy-id [email protected]
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already ...
1
vote
1
answer
3k
views
ssh command from Windows to Mac: permission denied
Objective
I want to access to my local Mac computer (version: High Sierra 10.13.5) from my Windows computer (Windows 10). The purpose is for automation, to remove the password authentication and add ...
1
vote
5
answers
582
views
Is there a way to log into a machine using SSH without password?
I know ssh is to create a secure shell connection to a machine, and we call ssh username@ip_address to login the machine.
Is there a way that I won't need to enter the password when connecting via ...
1
vote
1
answer
4k
views
ssh-agent and ssh-add
Does anyone know how to make it so that I don't have to add my keys manually using ssh-add? Every time I log into my Ubuntu server box, I have to start the ssh-agent and then use ssh-add before my ...
0
votes
1
answer
3k
views
SSH pub key (rsa_id.pub) does not work with MobaXterm but works with PowerShell and other apps
I used PowerShell to create a SSH key like so:
ssh-keygen.exe
# Enter to accept all default + blank PW
# Saved in C:\users\me\.ssh\id_rsa.pub
I can SSH to my server via PowerShell and it works as ...
0
votes
1
answer
900
views
Gateway Server Jump Bastion Host Local Setup
I want to ssh to a remote private host using an intermediate (bastion, jump, gateway) server. This command works fine:
ssh gateway ssh private
With this ~/.ssh/config setup:
Host gateway
User ...