Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

How to Connect GCP , VM machine with WinSCP

I created Virtual machine (VM) instance in the GCP but unable to connect with WinSCP from the windows machine.
0
votes
0answers
16 views

How do i authorize same ssh key across multiple machines

I've got a private Github repo I want to access from two different Linux machines. For the first machine, I followed Github's instructions for generating SSH keys, and added the resulting public key ...
1
vote
0answers
26 views

Should private keys be copied to multiple hosts?

I currently use multiple computers/laptops to access different servers. Until now what I have been doing is copying the private key to all of them, but I wonder if this is good practice. Should I copy ...
1
vote
0answers
36 views

Issues with seamless ssh connect via public key

I am trying to set up a seamless ssh connection from one server to another for the first time. While I think I managed to create a user and fitting rsa keys just fine, I can't actually connect via ssh,...
0
votes
1answer
23 views

Using Password-Protected SSH Keys for Unattended Scripts on Remote Server

From PC1, I SSH into SERVER1 where I have a bash script, that will SSH & auth to SERVER2 using an SSH-key that's password-protected. Everything works fine when I manually execute my script, using ...
0
votes
0answers
43 views

Adding SSH keys to local machine's SSH agent using Ansible

I'm trying to automate some of my personal server setup using Ansible, in order to wipe my disk clean and migrate to Ubuntu 20.04. Part of this process is installing the SSH keys I use for Github ...
0
votes
0answers
68 views

ssh public key auth fails for private git server

I want to git push from a local debian 10 user to my server (debian 10) where I have set up a git server under the username git using ssh public key auth. The problem is: it still asks for the ...
0
votes
0answers
17 views

How To Pass Multiple SSH-Keys for Multiple Inline Auths

BACKGROUND: We're using a reverse proxy solution. There is always an auth to the reverse proxy, and then the final host it connects us to. I'm attempting to pass multiple SSH-KEYS, one for the proxy, ...
2
votes
1answer
48 views

Can't connect to server via SSH using gpg-agent

I'm trying to connect to a VM on Google Cloud. I've created a public key to use for SSH and added the key to the cloud instance. I have SSH_AUTH_SOCK set to the file used by gpg-agent. ~/.gnupg/gpg-...
0
votes
1answer
61 views

GCP - “Transferring SSH keys to the VM” - constant loop

I had an instance created from the Deep Learning VM image which stopped allowing me to SSH into it through the Cloud console and went on a constant loop of trying to transfer SSH keys to the VM. ...
0
votes
1answer
25 views

Automating SSH authentication to GitHub - what should ~/.ssh/config file look like?

I'm trying to automate logins to GitHub using a private key, so that I can do "git pull/add/commit/push" from a BASH script. If I put this in ~/.ssh/config, it works: Hostname github.com User git ...
0
votes
1answer
19 views

Use the same SSH key to both connect to remote server and push to GitHub from that server

I've generated an SSH key pair to log to my remote server. I've also added that same public key in GitHub. So from my own machine, I have SSH access to GitHub: Hi hdodov! You've successfully ...
1
vote
1answer
29 views

Using 2 key pairs simultaneously for ssh authentication

I have a ssh server running on a raspberry pi. This ssh server can only be accessed by 1 user on my ubuntu laptop only. I have created 2 pairs of ssh keys using: ssh-keygen -t ed25519 -o -a 100 ssh-...
1
vote
1answer
37 views

Active Directory as uid/gid provider within a cluster

I have a CentOS 8 HPC cluster setup with a login node that is connected to an active directory via sssd/kerberos. Only the login node is accessible from the user network. Users use their normal domain ...
0
votes
0answers
16 views

SSH pub key add to authorized key

How to add public key to servers authorized_keys file if i use it on Windows (cat command does not work simply) and i know how to add with scp command or with sftp and it's work fine but the problame ...
0
votes
0answers
10 views

Can't ssh with explicit private key and IdentitiesOnly=yes

I have generated pub/priv key (ed25519) with no passphrase. Added pubkey to authorized_keys on host B. Here is .ssh directory content: ~/.ssh$ ls -la total 40 drwx------ 2 alex alex 4096 Mar 28 17:...
1
vote
1answer
68 views

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. [ ...
0
votes
1answer
17 views

cannot ssh into Amazon EC2 Instance, first time setting it up [closed]

Can't SSH into instance, security groups and everything else looks good. Is the not having a key pair the problem? https://admiral-iad.ec2.amazon.com/instance/62622761750#linker_verify_account=...
0
votes
1answer
54 views

Is it possible to generate a new SSH Key pair for an existing instance?

Setup: Bitnami Wordpress Lightsail Stack Is it possible to generate a new SSH key pair for an existing instance? What are the steps to generate a new SSH key pair for an existing instance (without ...
0
votes
1answer
192 views

Can't SSH into Google Cloud Compute instance using OS Login after `dnf upgrade`

I have a Google Cloud Platform Compute instance running CentOS 7. It has been working just fine, where I can use it with the web-based SSH interface without any problem. Recently, I switched to "OS ...
0
votes
2answers
1k views

Load key “privkey.ppk” invalid format

What have I done: I'm trying to connect to my remote server with private key with ssh -i privkey.ppk root@ip But it's returning an error. Error message: Load key "privkey.ppk": invalid format root@...
1
vote
0answers
189 views

Unable to ssh with public / private key pair

I'm unable to connect (ssh) to one of my servers with pubkey. It was working last week, and I have no idea where to search right now. I have a script which should fetch files with scp to use them ...
0
votes
1answer
47 views

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. ...
0
votes
2answers
83 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 ...
1
vote
2answers
304 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, ...
0
votes
1answer
51 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.
2
votes
1answer
866 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 ...
0
votes
0answers
216 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 ...
0
votes
0answers
44 views

Are all public keys residing in `~/.ssh/authorized_keys` equal?

I have set up a AWS EC2 Ubuntu instance. When launching it has created a key pair. Then down the road I have created a Cloud9 SSH environment that also has created its own key pair. I manually added ...
0
votes
1answer
596 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, ...
0
votes
0answers
303 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-...
0
votes
1answer
145 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 ...
0
votes
1answer
92 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 ...
0
votes
1answer
45 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 ...
0
votes
1answer
254 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 ...
1
vote
2answers
163 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....
0
votes
1answer
56 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 ...
0
votes
1answer
56 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 ...
0
votes
0answers
685 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 ...
0
votes
1answer
119 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) ...
1
vote
0answers
401 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 ...
0
votes
2answers
283 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 ...
0
votes
1answer
46 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@...
1
vote
2answers
209 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-...
1
vote
1answer
35 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 ...
-1
votes
2answers
58 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 ...
0
votes
0answers
53 views

Can I use a password and identity file to log in to my database with an SSH Tunnel? [MongoDB Compass]

I'm trying to log in to my vps through MongoDB Compass Community, and I can't find a way to use interactive log in (as I'm doing with FileZilla to log in) or input an identity file and password before ...
0
votes
0answers
18 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 ...
0
votes
1answer
167 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 ...
-1
votes
1answer
79 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 ...

1
2 3 4 5
14