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
2
votes
2 answers

SSH between two servers Linux and AIX

I am trying to do passwordless SSH between two server Linux (source) and AIX (destination) For this i have created public key in Linux server and coped this public key in destination server user profile (in path .ssh/authorized_keys).Also this file…
AWS_Beginner
  • 181
  • 5
2
votes
1 answer

In cloud VM instances, how to handle ssh host keys?

In throwaway VMs like the ones usually used by companies today in GCP or AWS, every time an instance boots for the first time it will have a new set of ssh host keys created. That means that if an instance was recreated since the last time you…
2
votes
3 answers

Looping transfer SSH keys while opening SSH access of my VM

Yesterday, I was able to connect to my VM without any problem. Today, when I wanted to connect, it just loops over "Transferring SSH keys to VM". When I go in the console, it loops the same thing. [ 25.428229] google_accounts_daemon[723]: Adding…
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

EC2: Creating pem files for external users

I'm fairly new to this. I'm running a bunch of EC2 machines and when creating my AWS Account i got my own .pem file in order to connect to my machines for which I have full access rights, etc. As I'm working with freelancers and developers I want to…
Matt
  • 43
  • 1
  • 3
  • 11
1
vote
1 answer

Why does a new Google Compute Engine Instance has pre-created user accounts?

Upon creating a new Ubuntu instance on GCP (from the official 18 LTS image), I noticed that it already has a few users in the /home folder. These are user names that I've created in the past on another instance. The new instance is created from…
1
vote
2 answers

GCP metadata Transferring to SSH Keys - Permission Denied

I'm not sure if this is a problem related to the Debian version because I don't have this problem in an old debianv8. I'm trying to add a new ssh key to my instance (I have one user it is working) in a Debian9 and I did it following the GCP…
1
vote
1 answer

RSA key pair is not allowing me to authenticate to my backup server

I have a server that authenticates SSH through RSA key pairs. Yesterday my rsync backup worked successfully I know this because of log files: /var/log/backups_log$ ls -l total 815536 -rw-r--r-- 1 root root 139244471 Jul 26 20:02…
13aal
  • 111
  • 5
1
vote
1 answer

ssh-add works with id_ed25519 key but not with id_rsa key

I have two keys in my .ssh folder, one is an id_ed25519 key and the other an id_rsa key. If I run : ssh-add ir_ed25519 I get the Identity added ... message and all is fine. If, on the other hand I try ssh-add id_rsa, it asks for a passphrase, I…
AlexN
  • 11
  • 1
  • 3
1
vote
0 answers

GitLab Server's SSH service seems to not be pulling in GitLab account key for authentication for a user

Git access fails with "Permission denied, please try again." after a client changed their system processor. Is there a way to check to see if SSHD is getting the proper auth / key info from GitLab's server? This seems to be the crux of the…
ylluminate
  • 1,155
  • 2
  • 17
  • 35
1
vote
1 answer

autossh working fine from terminal, bot causing permission denied from systemctl

I'm trying to integrate autossh on a raspberry pi. if I launch the command by itself autossh -o "ServerAliveInterval 10" -o "ServerAliveCountMax 3" -N -R 22002:localhost:22 user@myserver everything works fine, but launching the same command from…
Dany Y
  • 115
  • 6
1
vote
0 answers

Ubuntu SSH EC2 Broken Pipe after adding Elastic IP to Instance

Working with AWS EC2, I had a working m5.large instance running Ubuntu 16 with a regular IP address. I added limited access sftp users by editing /etc/sshd/config to the machine, which worked fine. Then, I added an Elastic IP address to the box and…
amatusko
  • 111
  • 4
1
vote
2 answers

Puppet ssh_authorized_key type not available

I am using Puppet to manage SSH keys on all my devices including a bunch of Raspberry Pi's but only the Raspberry Pi's are complaining about the ssh_authorized_key type missing. Warning: /Stage[main]/Profile::Users/User[username]: Ssh_authorized_key…
Laywah
  • 99
  • 7
1
vote
0 answers

Cisco IOS: Is it possible to SSH into a Linux server with PubkeyAuthentication?

I'm on a Cisco 2900 router running IOS ver 15.4. I have run show ip ssh and get the following: SSH Enabled - version 2.0 Authentication methods:publickey,keyboard-interactive,password Authentication timeout: 120 secs; Authentication retries:…