Questions tagged [ssh-keygen]

83 questions
2
votes
2 answers

Creating SSH key for remote host

I am beginning work with a remote host. They require a "SSH KEY" from my server. How can I create a SSH Key that they can use to allow connections from my server? I would like to assign the key to a specific SSH user on my server if possible. I'm…
Michael Ecklund
  • 251
  • 2
  • 5
  • 13
2
votes
0 answers

Remove BOTH ssh key for IP and ssh key for FQDN from known_hosts

Is it possible to remove an ssh key from known_hosts both for the IP and for the FQDN of a machine, knowing only one of the 2? For example, I am on machine A, and I want to remove the public ssh key of machine B (whose IP is 1.2.3.4) from A's…
1
vote
1 answer

Is it okay to use same SSH keypair for different servers, and how not to?

Initially i tried (and failed) to generate a new SSH keypair for a new server. By default it offers to save it into ~/.ssh/id_rsa, which obviously i couldn't, so as to not overwrite my existing key. So instead i saved it under…
1
vote
2 answers

EC2: how to download the private key file for a user

I'm only working with terminal in order to create a user on a linux machine (ec2). When creating a new user and then generating an ssh key for this user ssh-keygen -f rsa I do this I then get a rsa.pub file in the users home directory and I also…
Matt
  • 43
  • 1
  • 3
  • 11
1
vote
1 answer

OpenSSH Windows Server 2016

I am trying to install OpenSSH on a windows server machine. When i use this command: Get-WindowsCapability -Online | ? Name -like 'OpenSSH* I don't get this output: Name : OpenSSH.Client~~~~0.0.1.0 State : NotPresent Name :…
1
vote
0 answers

ssh key revocation list and -z version number

I've been reading about setting up an ssh certificate authority and controlling access via key revocation lists. And in the man page, it lists a -z option for specifying a version number for a key revocation list. It is not very clear from context…
dburke
  • 143
  • 1
  • 7
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

SSH access to AWS working with default id_rsa.pub but not with key generated using ssh-keygen

Hi I've never posted a question here but, I'm trying to access an AWS instance without entering a password with the following and having some issues. $ ssh -i ~/.ssh/id_rsa_aws.pub ubuntu@ipaddresshere However it's prompting me for a password even…
1
vote
1 answer

Rsync not working with one server while it does with others using strato hidrive

On a CentOS 6.4 running linux server, I am trying to rsync a folder with strato hidrive (http://www.strato-hosting.co.uk/online-storage-hidrive/advanced/). The server is running rsync version 3.0.9. What I have done to set up the rsync to the…
jeffreydev
  • 111
  • 3
1
vote
5 answers

SSH as root using public key still prompts for password on RHEL 6.1

I've generated rsa keys with cygwin ssh-keygen and copied them to the server with ssh-copy-id -i id_rsa.pub root@my.ip.address I've got the following settings in my /etc/ssh/sshd_config file RSAAuthentication yes PubkeyAuthentication…
Dean Schulze
  • 199
  • 1
  • 3
  • 9
1
vote
1 answer

Problems with SSH

I'm having issues with one of my computers on my server accepting my key. I've used this key on other computers I've set up before with no problems, I can SSH using it into many different servers. Here's the tail of the log: debug1: Authentications…
James
  • 11
  • 1
1
vote
1 answer

rsync from Drobo to Drobo

I'd like to run a backup rsync job from one Drobo to another. I've managed to get rsync and the ssh tools installed so that I can ssh from my desktop into backup@drobo1.local and then ssh into backup@drobo2.local from drobo1.local What I need to…
Tom
  • 766
  • 3
  • 9
  • 24
1
vote
1 answer

Is it safe to ssh-keygen a "ecdsa-sk" or "ed25519-sk" in a potentially compromised environment?

I'm wondering whether it would be a good practice to make sure the keys are generated in a safe environment, like a live Linux distribution, instead of just generating them in a day-to-day environment that could be potentially compromised already. I…
luislhl
  • 111
  • 2
1
vote
1 answer

Validate all public keys in authorized_file

In my authorized_file i have multiple public keys against one private key. Now i want to add a task in ansible which will validate that all public keys are valid keys and good for connection. My aim is to remove bad/faulty key from authorized_file.
1
vote
1 answer

I used ssh-keyscan in production environment. is it possible to revert back?

I used ssh-keyscan in production environment, after got to know it may allows MITM. I check in known_hosts files, fingerprint is not there. where can i check or is there any option?
Ajith
  • 11
  • 1