Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

SSH keys are an authorization mechanism for SSH involving public-key cryptography. It consists of

  • A private/public key pair generated by a utility like ssh-keygen.
  • A configured (in /etc/ssh/sshd_config) SSH daemon that allows public key authentication.
  • A configured user account that has the public key copied to ~/.ssh/authorized_keys.
792 questions
1
vote
0 answers

OpenSSH Windows Error

I want to connect with putty from one machine_1 to another Windows machine machine_2. So I install a OpenSSH Server on machine_2. I generate 2 a key pair with puttygen. I paste the public key in C:\Users\Administrator\.ssh\authorized_keys…
jofri
  • 11
  • 3
1
vote
1 answer

Google Cloud Platform: ssh from VM_1 in project_A to VM_2 in project_B

I am trying to connect virtual machine VM_1 in project_A to virtual machine VM_2 in project_B. Bot are on Debian Linux. Steps I did: On VM_1 Project_A Generated private and public keys ssh-keygen -t rsa -f ~/.ssh/my-ssh-key -C example-user $ chmod…
abhi
  • 21
  • 4
1
vote
1 answer

ssh-add -l multiple entry for the same private key

192-168-1-103:~ josh$ ssh-add -l 4096 SHA256:4fFdwJ71VIH8rucL9y/3U7jxjctaFcAKmdQZPEqR0Y4 /Users/josh/.ssh/id_rsa (RSA) 4096 SHA256:41kNx5H5yDf1mv6ZNS5W5nSI77WU5qhajLYHvUe6/1A /Users/josh/.ssh/id_rsa (RSA) Any idea how come there are two…
user61342
  • 149
  • 1
  • 1
  • 4
1
vote
0 answers

Warning: Remote host identification has changed (SSH)

Most likely someone did a server update last night, because when I try to do a rsync (from win 7) I get the message (short version): WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! It is possible that a host key has just been changed. The…
Steven
  • 275
  • 2
  • 9
  • 21
1
vote
1 answer

Attempting to setup ssh authentication on linux - Grants access all the time

I am currently attempting to secure one of my linux box. I would like the device to grant access to only those systems that have the ssh private keys. In order to accomplish that here is what I did (and unfortunately it still seems to me like the…
James Franco
  • 113
  • 4
1
vote
1 answer

passwordless ssh in VM - weird authorized keys file

I am trying to setup passwordless ssh to my localhost (itself). I have host machine PM1 and then I lauch a VM(vm1) using qemu-kvm and logged into VM. Then, I am trying to setup passworless ssh within vm1, so that ssh root@vm1 (from vm1 itself)…
kumar
  • 433
  • 3
  • 10
  • 23
1
vote
2 answers

Is there any way to change the key pair on a windows ami in aws

The situation, I've inherited a windows infrastructure in AWS. The ami's were created with someone else's keypair who has now left the business. I have a requirement to remove those keys. The way I have found so far is to create a new windows ami,…
1
vote
2 answers

How to allow both/either public key and/or password authentication

I am trying to get Komodo to connect to a remote server. However, as I understand it, Komodo doesn't support public ssh keys. I edited the /etc/ssh/sshd_config file and set both PasswordAuthentication yes PubkeyAuthentication yes However, when I…
user2694306
  • 123
  • 1
  • 1
  • 7
1
vote
2 answers

getting permission denied when using ssh

I am trying to setup ssh access using keys - I have added my public key to the .ssh directory on the server. I restarted the ssh service on the server as well. When I logon from my local computer to the server, I get a denied message (copied below…
ali haider
  • 1,140
  • 3
  • 16
  • 29
1
vote
1 answer

users to connect SFTP server with openssh key

I want to be able to allow users to connect to my SFTP server with openssh key which I generated in keygen. How would I accomplish this?
sanam khan
  • 19
  • 4
1
vote
1 answer

How to save ssh-keyscan result with the port to .ssh/known_hosts

When I run ssh-keyscan -p NNN -t rsa GITHOST it produces sting like GITHOST ssh-rsa…
kmmbvnr
  • 111
  • 1
  • 3
1
vote
0 answers

Enabling SSH for deploy of a bitbucket git repo

I'm trying to deploy my git repo to my server. To make this work I first needed to setup ssh on my locale computer and on my server. for bitbucket I followed https://confluence.atlassian.com/bitbucket/set-up-ssh-for-git-728138079.html and for pm2 I…
Markus
  • 109
  • 6
1
vote
2 answers

How do I generate SSH keys on a Google compute engine windows instance

There are a multiplicity of articles on the web about setting up SSH on Google compute engine for Linux instances but a lack of ones describing how to successfully generate them for a windows instance. I have created keys using gcloud compute ssh…
Norco
  • 11
  • 1
  • 3
1
vote
3 answers

PEM_read_PrivateKey failed

I'm trying to use ssh to log in to AWS from OSX Mavericks and having a hell of a time. I enter: ssh -i ~/.ssh/filename.pem ec2-user@ec2-xx-x-xxx-xx.compute-1.amazonaws.com -v And I get this, as well as a keychain popup that asks for a password,…
racknuf
  • 111
  • 1
  • 1
  • 3
1
vote
2 answers

To generate key for AWS server using ssh-keygen from .pem for PuTTY

AWS gave me a private key in the format of .pem. I am trying to use it with PuTTY but failed and I read I need to generate a key with PuTTYgen but PuTTYgen is only for Windows. So I am trying to use the Linux command ssh-keygen. But what is exactly…
Alex
  • 13
  • 2