Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

Filter by
Sorted by
Tagged with
0 votes
2 answers
830 views

Mixture of authentication methods for SSH

Is there a way to accomplish Kerberos authentication for some accounts and ssh-key authentication for the others in Linux? The Kerberos method is for accounts that are in Windows and Linux, whereas ...
Anant Raman's user avatar
3 votes
2 answers
7k views

SSH keys no longer work?

The Problem Trying to connect to my QNAP server from two different computers, which previously could connect via ssh without a password -- but now a password is asked for each time. What went wrong, ...
Ryan de Kleer's user avatar
0 votes
1 answer
90 views

authselect vs ssh key in a tiny network

I am trying to setup a tiny LAN (2 - 3 Linux computers) with a wifi router and CentOS 8. Does authselect provide any security benefit over ssh keys? Thanks.
Duh Huh's user avatar
5 votes
1 answer
3k views

How can I confirm SSH fingerprint when connecting to a new Amazon EC2 instance using PuTTY?

When I create a new EC2 instance running Ubuntu 18.04, using a new EC2-generated keypair, I convert the resulting .pem to .ppk using puttygen, then try to connect to the instance using PuTTY, and I am ...
Max Barraclough's user avatar
0 votes
0 answers
2k views

SSH-key based authentication for VPN server

I would like to set up a VPN-Server for our users that allows them to authenticate with every key in ~/.ssh/authorized_keys. I know that wireguard uses SSH-keys as well, but how can I tell it to ...
Hoeze's user avatar
  • 101
2 votes
1 answer
23k views

Correct configuration of the SSHD config file?

I'm using ssh on my linux box, I want to secure it to be as watertight as possible, only allowing ssh via ed25519 elliptic curve crypto sigs. I thought I had it setup correctly, disabling password, ...
Woodstock's user avatar
  • 103
2 votes
1 answer
2k views

Unable to SSH to Synology NAS

Here is the sequence of events: I added my RSA key to .ssh/[my admin user], updated permission, and disabled SSH authentication by password months ago. I formatted my desktop and I forgot to re-...
HCSF's user avatar
  • 245
0 votes
1 answer
2k views

How to login to a Linux server without SSH key?

I had setup a SSH key to login into my linux server but the SSH public and private key have now been deleted from my personal computer. How can I login into my Linux server with the username and ...
Rasik's user avatar
  • 109
0 votes
1 answer
470 views

Deploy Public Key in Windows Server

I have a Windows server in AWS and I want to deploy a public key to connect sftp authentication by key file. I use freeftpd to reach my sftp connection but the program do not support key ...
Jorge Ivansevick's user avatar
0 votes
1 answer
57 views

Google cloud platform ssh keys

i'd like to manage my own ssh keys and i want to distribute my ssh keys on all my instances is there a way that i can add it to the project metadata or i have to add the keys to every instance ...
Mouad ZAAZAA's user avatar
2 votes
3 answers
16k views

Cannot find my generated SSH key

I'm trying to create an SSH key to eventually use to connect to a cloud based VM. (base) Mac:~ user$ ssh-keygen -t rsa -b 2048 Generating public/private rsa key pair. Enter file in which to save the ...
Ari's user avatar
  • 143
1 vote
2 answers
3k views

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....
Matt's user avatar
  • 43
1 vote
1 answer
2k views

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 ...
Matt's user avatar
  • 43
0 votes
1 answer
66 views

Auth with ssh key only

I'm currently working on something on my lab, i want to deploy script to let users auth with ssh key only through ssh and rotate those key every 90 days Those users need to have root rights on the ...
Taumex's user avatar
  • 1
0 votes
0 answers
4k views

ECDSA host fingerprint changes if the host is already known

I'm using a web hosting service that offers both FTP and SSH access, but for SSH they only allow authentication via SSH keys. I've generated myself SSH keys using ssh-keygen, imported them into my ...
Aaron Franke's user avatar
0 votes
1 answer
242 views

How to push code in GitHub bare repo with private / public keys [closed]

I have a server where I have a bare repo with a node.js application. I pushed the code without the node_modules and installed them directly on the Server. Heres my problem: The changes (node_modules) ...
Johann Süß's user avatar
3 votes
2 answers
1k views

SSH config using multiple ProxyJump with keys on remote machines

I want to reach any of my server with only one SSH command. My problem is that when I use "ProxyJump" or "ProxyCommand" the "IdentityFile" is searching for the key on my machine. Is there any option ...
Jene's user avatar
  • 31
4 votes
2 answers
4k views

How can I make Ansible use the SSH signed client certificate for connections?

I have implemented SSH CA client signing on my servers. Sshd is configured on my servers with the following directive: TrustedUserCAKeys /etc/ssh/trusted-users-ca.pem I modified my local ssh config ...
Jeroen Jacobs's user avatar
0 votes
1 answer
353 views

SSH works fine at start but permission denied (publickey) after some time

I have 3 instances on GCP all ubuntu. I try to ssh from the private IPs in each as soon as I start the machines and they work fine but after some time they start throwing errors. shiv1499@...
shivam gupta's user avatar
2 votes
3 answers
1k views

duplicity backup fails: "Private key file is encrypted"

I am trying to upload my first duplicity backup to a remote server and it fails. It is the first time I am using the tool and it did not work before. duplicity /home/me/Documents/ scp://me@<ip-...
transient_loop's user avatar
2 votes
1 answer
274 views

Can OpenSSH automatically disconnect session at end of cert-based key's valid period?

I'm aware of the ability to logout inactive SSH sessions after a period of time but leaving something like "top" open works around that. This question is more in the context of forceful disconnects ...
Rob Olmos's user avatar
  • 2,240
-1 votes
2 answers
2k views

Access Denied to server linux SSH [closed]

I can't access the server using ssh user@IP with the right password i get access denied even though the sshd config is set correctly i restarted it reloaded nothing worked. I generated an rsa key over ...
Zineb BAGHDADI's user avatar
0 votes
0 answers
145 views

SSH host key has changed after VM switched node, can't login

I have a server in a cloud service that has been running smoothly. I've only ever connected via SSH. Yesterday, they had a node malfunction and moved all VM:s to another node/other nodes. After the ...
webejaxx's user avatar
  • 101
1 vote
1 answer
1k views

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 ...
Jack C's user avatar
  • 11
-1 votes
2 answers
296 views

Global authorized_keys associated with a user?

Is it possible to have a global authorized_keys file that associates each user to their own public key? For example, I would like to create multiple user accounts by their Github user name and public ...
eppixdev's user avatar
7 votes
2 answers
23k views

How to make in SSH private key from one line, three lines [closed]

i have ssh-key, something like this -----BEGIN RSA PRIVATE KEY----- my_super_secret_password -----END RSA PRIVATE KEY----- Of course this key does not work. When i am doing manual things, something, ...
Piduna's user avatar
  • 561
1 vote
2 answers
2k views

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 ...
Michel Zúñiga's user avatar
1 vote
1 answer
167 views

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

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 ...
13aal's user avatar
  • 111
0 votes
1 answer
463 views

SSH refusing pubkey on daemon started by systemd but accepts key when sshd is started manually

When I copy my public key to the server using ssh-copy-id the server actively refuses my connections with a simple type 51 failure. OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 debug1: ...
Gala's user avatar
  • 101
1 vote
1 answer
5k views

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 ...
AlexN's user avatar
  • 11
1 vote
0 answers
487 views

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 ...
ylluminate's user avatar
  • 1,185
1 vote
1 answer
1k views

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 ...
Dany Y's user avatar
  • 115
2 votes
3 answers
7k views

What can someone do with your SSH Private Key? [closed]

What exactly can someone do with my Private Key after they used my laptop to create a SSH Public Key? After reading a few websites, it looks like they can access a server pretending they are me when ...
LWYMUFC's user avatar
  • 21
0 votes
3 answers
537 views

One time password login via ssh

Adding SSH keys I have a server running CentOS 7. I have a multitude of clients varying from Fedora, Ubuntu, CentOS and Windows 10 if that matters. The only way to log into the server is via ssh on ...
ComplexXD's user avatar
7 votes
3 answers
6k views

How can I add a .pem private key fingerprint entry to known_hosts before connecting with ssh?

WARNING -> Please be careful when reading this problem description. I had some assumptions that were not correct as I was writing this question. Make sure you read my answer explaining what I had ...
Jazzepi's user avatar
  • 191
3 votes
3 answers
513 views

Differing ssh host key in Container-Optimized OS instance

I created a Container-Optimized OS instance in the Google Cloud. When I try to connect to it via ssh from outside the ssh host key fingerprint shown differs from the output of ssh-keygen -lf /etc/ssh/...
Jodka Lemon's user avatar
2 votes
1 answer
93 views

How to setup ssh for a couple of servers?

I'm pretty confused about how ssh really works, and I have already asked a couple of questions related to this, but I suspect I'm going in the XY-problem trap. So, what I want is this. I want to be ...
klutt's user avatar
  • 167
2 votes
1 answer
960 views

How to fetch ssh keys from servers?

I need to login to a host via ssh, get a keyfile, close the connection and then use the key to login without password on several machines. The underlying problem is that I need to perform tests on a ...
klutt's user avatar
  • 167
6 votes
2 answers
10k views

Restricting a ssh key to only allow rsync/file transfer?

I have 2 servers (A & B), and I need to rsync files from A to B as root. Allowing root ssh login is possible (PermitRootLogin without-password), but I'd like to lock it down as much as possible. I'...
Amandasaurus's user avatar
  • 31.7k
-1 votes
3 answers
2k views

Unable to SSH into Centos server unless root user

I have a digital ocean droplet that currently allows me to login directly via the root user via SSH as the relevant keys have been added to the authorized_keys file. ssh root@master // this works ...
Zabs's user avatar
  • 191
0 votes
1 answer
498 views

How do I create a user and add an SSH key on an EC2 instance?

I can ssh into a remote EC2 instance with ec2-user and the keypair in the EC2 account with root(sudo) privileges. How can I manually create another non-ec2-user user account, add an SSH key, and add ...
fatal_error's user avatar
  • 1,152
0 votes
1 answer
1k views

Google Compute Engine Removed Authorized Keys

I have instance in Google Cloud platform. I can not connect to my instance because I accidentally removed the .ssh/authorized/keys file in my instance. In addition to that, I connected using ...
Cenk's user avatar
  • 1
3 votes
1 answer
1k views

SSH ignores key in agent and keeps asking for key decryption password

In my ssh_config, I have configured SSH to use a specific key when connecting to a host. I want SSH to try only this key, not any other key it may find (in ssh agent or some other location), so I ...
Jan Warchoł's user avatar
0 votes
2 answers
1k views

Permission denied, please try again ( Ubuntu )

Actually I already have tried everything as dicussed in SSH Permission denied (publickey) and Unable to ssh to GCE: “Permission denied (publickey), But none resolved the issue. I am able to ssh into ...
Muhammad Rafique's user avatar
0 votes
0 answers
185 views

sshd: save the client's public key

Today we needed to sFTP to a remote server. The remote server administrators didn't want us to send them the user's public key; instead, they asked the user to perform an initial connection, that was ...
simlev's user avatar
  • 1,115
0 votes
2 answers
3k views

Locked out of Linux VM after using `gcloud compute os-login ssh-keys add`

Just like this guy, I started getting an error message when trying to add ssh keys: Supplied fingerprint does not match current metadata fingerprint I get this error when I try to add the keys to the ...
oligofren's user avatar
  • 641
4 votes
3 answers
14k views

Putty "Server Refused our key" Google Cloud Platform compute engine instances

We have two compute engine instances(both Linux VM's) on one Project. One I had access through Putty and it was connecting fine. But the other instance I had the "Server Refused our Key" error when ...
Joseph Flores's user avatar
1 vote
0 answers
286 views

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. ...
amatusko's user avatar
  • 111
1 vote
2 answers
2k views

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]/...
Laywah's user avatar
  • 109
5 votes
1 answer
7k views

ssh-copy-id doesn't work with .pem files

I am trying to copy an SSH public key on several EC2 instances. Reading the ssh-copy-id man page, when you pass the key file, the program adds .pub extension if it missing. AWS keys are generated ...
fromthestone's user avatar

1 2 3
4
5
16