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
0
votes
1 answer

Where to store private SSH keys?

Looking for a "best-practices" kind of answer when it comes to storing private SSH keys. Scenario: VMs are deployed to the cloud using Terraform, they use a single public key. Now the corresponding private key needs to be stored somewhere - where…
dywan666
  • 160
  • 8
0
votes
1 answer

How to specify identity when using SSH agent?

I've got a slightly unusual use-case... I'm using SSH via certificates, (where the authentication mechanism isn't just a signature from a private key, but also presentation of a signed cert). I have many endpoints/servers and different environments…
Woodstock
  • 103
  • 1
  • 1
  • 11
0
votes
1 answer

Taking input on remote vm

below is my use case , I have to take a input from a user for a specific command which need to run on a remote machine.But my problem is I am not able to access that machine directly so what I am doing Ssh to othere server and from their I am doing…
Mohan
  • 1
0
votes
1 answer

Azure Ubuntu VM: Where is my public key file stored (used for SSH login)

With Azure linux virtual machines (Ubuntu in particular), when opting for PKI authentication, where does it store the public key on the server? I can't find any .pub files in my ~/.ssh directory. I've googled and almost every article indicates…
R2Bleep2
  • 29
  • 1
  • 6
0
votes
1 answer

I have created new .ppk file with new passphrase from .pem file. How do I disable the access using the old ppk with old passphrase?

I am using a Centos based EC2 instance and had shared the ppk file with a passphrase with the team. Now I want to secure it and hence generated ppk file with new passphrase using Puttygen. But I can still connect to the instance from Filezilla using…
0
votes
2 answers

How to manage the keys in my ~/.ssh/authorized_keys on the server? (login without requiring password each time on a particular machine)

I am trying to follow this answer to login to my server via ssh without typing my extremely long password each time: https://serverfault.com/a/241593/295203 Right now I have 6 keys in my authorized_keys: (base) -bash-4.1$ wc -l…
O.rka
  • 161
  • 1
  • 1
  • 5
0
votes
0 answers

Not able to SSH into VM using any of the authorized IDs even from console

I am not able to SSH into my VM on google cloud. The only thing that has changed is that I have now upgraded my account to a paid account from free account. My billing subscription was expired before I could upgrade my account. The VM is still…
0
votes
2 answers

SSH wont log into VPS using DNS

I'm working on a Virtual Machine where I have Ubuntu Server, in that server I connect to my cloud server (ubuntu), via ssh , but when I tried to log in with this syntax: ssh subdomain.example.com It brings this error : Permission denied…
k0r3n
  • 1
  • 3
0
votes
1 answer

What is the best method for adding RSA Key Fingerprints to known_hosts upon provisioning each server?

This question was inspired by this thread The hypothetical scenario, for context is as follows: SSH servers, whether they be routers, firewalls etc. are all firstly provisioned within a private + secure environment before being deployed. The SSH…
Inquisitive
  • 103
  • 2
0
votes
2 answers

Accidently removed user profile with SSH key

I accidentally removed my user profile with SSH key on google cloud VM, so now I don't even have the possibility to connect to that machine. It's not a big deal since that VM is for testing purposes, but it would be nice to know what to do if a…
0
votes
1 answer

missing ssh key in results returned by ssh-keyscan?

in short [newbie here] Why can't I find my SSH key with which I connect to my server in what is returned by ssh-keyscan -H my_server_address ? I rent a dedicated server based on Debian 10 (OVH) The server is configured with an ECDSA SSH key…
suizokukan
  • 101
  • 2
0
votes
2 answers

how can we edit ssh keys of VM In GCP Please guide

My ssh Keys in Vm Instance are showing "expireOn":"2020-11-20T00:06:44+000" since then i am unable to connect to my VM and also not able to connect via SSH Please guide on how to update the ssh keys on GCP
0
votes
1 answer

I want to combine my rsa.public with my rsa.private to a .pfx that I can use to digitally sign an xml file

Here is the code I have so far: for the private key: openssl genrsa -out rsa.private 1024 for the public key: openssl rsa -in rsa.private -out rsa.public -pubout -outform PEM Then I'm trying to generate a cert with OpenSSL with the proper X.509…
MMis
  • 1
  • 1
0
votes
0 answers

SSH connection strange behavior

I am using windows10 and I can connect to my server(Ubuntu 18.04) with PowerShell and Putty. but not with the other two ssh client I have (MobaXtrem,Bitvise). but when i turn on my VPN(SeedVpn) on client, I can connect with this two apps as well. i…
fristhon
  • 1
  • 1
0
votes
2 answers

Unable to ssh with authorized keys, password always prompted

I've been through several posts here to try to correct this issue but I am being unable to do so. A few days ago the login to the server with the authorized_keys mapped stopped working, there was no one changing the file or the folder itself, I am…
André Fróes
  • 3
  • 1
  • 1
  • 3