Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

Filter by
Sorted by
Tagged with
2 votes
3 answers
3k views

Lost ssh access to Google Cloud VM

I have a VM (Debian) running on Google Cloud Platform, but I can't connect via ssh or serial console (can't create an user via startup-script for some reason). Already tried a bunch of troubleshooting ...
krz7's user avatar
  • 21
0 votes
2 answers
11k views

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 ...
André Fróes's user avatar
3 votes
1 answer
4k views

Adding ssh keys to a new server without having previously set up users on that server

I've setup a clean new VPS running Ubuntu 20.04 LTS with Hetzner and would like to access it via ssh. Here is what I've tried to do: I have added my public ssh key (passphrase-less) in Hetzner's ...
Karoh's user avatar
  • 155
1 vote
0 answers
208 views

Sudo needed a second time when rsync files with ssh key

I use a command to transfer files with rsync and a ssh key: sudo rsync -P -e 'ssh -i <absolute path to keyfile>' <file> user@<server> I need the first sudo because the file I'm ...
Babbel's user avatar
  • 11
0 votes
2 answers
1k views

SSH Can't connect to Google Cloud Compute-Engine-Instance: Permission denied (publickey)

I followed this tutorial on how to setup a GCE-VM with ssh. However i can't seem to successfully connect via ssh as the guy from the video did! This is the output when i try connecting (IP is ...
Tim Hilt's user avatar
  • 135
2 votes
1 answer
10k views

StrictHostKeyChecking=ask not working no matter what I do

This feels like a novice question but I cannot log into my ssh server after changing the host hey, despite throwing around StrictHostKeyChecking=no or StrictHostKeyChecking=ask everywhere. The ...
haelix's user avatar
  • 217
1 vote
1 answer
46 views

What is the appropriate way of migrating credentials to a new machine?

The title probably looks a little too vague, but I feel that if I give more information I might as well put the whole text into the title. Today I have two droplets on DigitalOcean with SSH enabled ...
Renato Oliveira's user avatar
0 votes
1 answer
549 views

centos 8 ssh remote server asking password despite PubkeyAuthentication yes

I am trying to connect remote host from client computer without password (with password works perfectly) On client computer I did following but when I try to connect ssh, still asking password. anyone ...
danone's user avatar
  • 166
2 votes
1 answer
262 views

Why does ssh login as an AD user with private key in nfs4 /home succeed on the second attempt?

I configured my up-to-date Debian (v10.5) Server with samba, winbind, sssd, krb5 and nfs-common to authenticate against an AD in my domain and mount its /home via nfs4. On the client side (windows ...
Andreas Schuldei's user avatar
0 votes
1 answer
619 views

Setup SSH so only key-based whitelist of logins are possible?

How can I configure sshd so I permit only key-based access for select users? Besides a root user, I would like restrict a specific user.
onkami's user avatar
  • 101
1 vote
0 answers
2k views

How do I run a Docker container as a non-root users and still be able to use ssh?

Stackoverflow told me to post this here... I created a CentOS 7 based docker container (using Dockerfile) that contains everything I need to perform my tasks (git clone ssh://... and make). The ...
Jason Templeman's user avatar
0 votes
1 answer
752 views

How does everyone manage a multi server environment and their credentials with ansible?

I'm trying to figure out the cleanest and/or most secure way to manage a multi server (linux) environment in AWX/Tower/Ansible. I've seen a few posts around this topic, but there doesn't seem to be a ...
utcruibvdjrtijiiue's user avatar
2 votes
0 answers
73 views

How to change the Amaon Linux test page on AWS Instance?

I'm pretty new to the AWS. I have created my AWS Instance and installed httpd service on it. Now, when I start httpd and open that webpage, I can see that it is running perfectly. I want to change ...
Srinivas V's user avatar
1 vote
1 answer
2k views

How do I access an Ubuntu VM on Vmware, without a password

I have an Ubuntu VM that is running on Vmware, this does not have a root password. Recently I disabled the ssh on this VM, so not able to access it. Is it possible to access this through the Vcenter ...
kumarei's user avatar
  • 11
0 votes
1 answer
460 views

WordPress is down after Google Cloud Platform VM instance IP changed, Unable to SSH

My WordPress website is down after I restarted VM instance of Google Cloud Platform. It had Ephemeral IP, I find out my External IP has been changed! Old IP address: 35.200.58.194 New IP address for ...
Ajendrasinh Vaghela's user avatar
2 votes
1 answer
222 views

How can I use different ssh keys for user1@host and user2@host, without resorting to aliased hostnames?

I have a remote CentOS server, lets pretend it's called hostname.com hostname.com has several user accounts, and I want to ssh into this server as any one of these users (using ssh keys rather than ...
carpii's user avatar
  • 541
2 votes
1 answer
4k views

Reconnect automatically to a disconnected ssh session [closed]

I am new to this community , I am working on my iot project in which my microcontroller is working as a server, taking data and executing request. My client is end device (mobile,tablet) and I am ...
adil kampoo's user avatar
0 votes
0 answers
163 views

ssh - forward credentials without Agent Forwarding (likeProxyCommand)?

I would like to be able to use my local credentials in a remote session without Agent forwarding if possible. The reasons: Agent forwarding has security issues (port accessible to remote root users) ...
RabidMutant's user avatar
-1 votes
1 answer
369 views

How to uninstall ssh-keygen utility safely? [duplicate]

I am being tasked to remove ssh-keygen from Ubuntu servers and I don't want to break the computer. Can you please help, how to uninstall ssh-keygen utility safely? Thanks
Bhalu's user avatar
  • 3
1 vote
0 answers
1k views

OpenSSH HostBasedAuthentication failing: get_socket_address: getnameinfo 8 failed: Name or service not known when ssh_keysign runs

I have two Ubuntu hosts (20.04 and 16.04). Each has a public IP address on eth0, and a private fast network on eth1. I would like to have ssh HostBasedAuthentication working on the private network ...
XLTechie's user avatar
0 votes
2 answers
2k views

Local GitLab Not Accepting SSH Key

I checked out this post, but it seems like it was written for OSX and/or Windows, and I'm not really sure how to apply it to my situation: GitLab Not Working With SSH-Keys I set up my GitLab instance ...
Alex Eastman's user avatar
4 votes
1 answer
8k views

Why can I access my server when I have: Warning: Identity file .ssh/key-file not accessible

Why can I still connect to my server when the keys I am using are clearly not accessible? From my PC, to connect to the server: ssh -l myLogin -i .ssh/key-file <SERVER_IP> I have tried this in ...
Yosko's user avatar
  • 167
12 votes
3 answers
5k views

How to prioritize explicit ssh key from commandline over ssh-agent keys?

I have a bunch of ssh keys loaded semi-permanently into ssh-agent. ssh-add -L lists 6 keys. I also have other keys which are stored separately; let's say, on a USB stick. I exactly don't want to keep ...
ulidtko's user avatar
  • 438
1 vote
0 answers
846 views

SSH authentication via SSH-key not working, not even on same machine, keeps asking for password

Before resolving the issue that I can't connect from my client to remote using publickey authentification, I thought I should try logging in from my remote account onto that same remote account just ...
user1234's user avatar
  • 111
0 votes
1 answer
306 views

How can I generate multiple ssh keys for a new Ansible server?

I work on an on-premise network, and we have an Ansible server connected via SSH-Keys to around 400 servers. I've wanted to recreate the Ansible VM, due to the fact that it was poorly made on top of ...
Eyal Menahem's user avatar
0 votes
0 answers
48 views

PasswordLess SSH

We have establish a Passwordless SSH connection between Windows Machine and Linux. For this we have copied public key in .ssh/authorized_key in linux machine. SSH connection was working fine and we ...
AWS_Beginner's user avatar
2 votes
2 answers
654 views

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 ...
AWS_Beginner's user avatar
2 votes
1 answer
335 views

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 ...
Hilikus's user avatar
  • 125
1 vote
1 answer
198 views

SSH from windows to AIX

I am trying to do SSH from Windows to AIX. I am able to do SSH.But i have some doubt how SSH is working here. pqp1111 is the user in AIX server. In home directory of pqp1111 i can see below key is ...
AWS_Beginner's user avatar
1 vote
1 answer
331 views

krypton ssh stops to work after upgrading to macOS Catalina 10.15.5

I have just upgraded macOS to Catalina 10.15.5 and ssh using krypton has stopped to work. First I got an error Enter PIN for 'Kryptonite iOS': which I solved removing line PKCS11Provider /usr/local/...
Jose Luis de la Rosa's user avatar
0 votes
1 answer
2k 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. I created on VM instance in the GCP then generated pub key by using command ssh-keygen ...
Hari Om Gupta's user avatar
0 votes
0 answers
238 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,...
daZza's user avatar
  • 101
0 votes
1 answer
782 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 ...
Mark Sanchez's user avatar
0 votes
0 answers
3k 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 ...
Mark LeMoine's user avatar
83 votes
15 answers
587k views

What causes SSH error: kex_exchange_identification: Connection closed by remote host?

I setup a SSH server online that is publicly accessible by anyone. Therefore, I get a lot of connections from IPs all over the world. Weirdly, none actually try to authenticate to open a session. I ...
soliz's user avatar
  • 932
0 votes
0 answers
604 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 ...
Pratched's user avatar
  • 101
3 votes
1 answer
576 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-...
5nefarious's user avatar
1 vote
2 answers
1k 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. ...
user1058210's user avatar
0 votes
1 answer
96 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 ...
John Heyer's user avatar
0 votes
1 answer
549 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 ...
dodov's user avatar
  • 141
1 vote
1 answer
707 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-...
iLW's user avatar
  • 131
1 vote
1 answer
353 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 ...
DayAndNight's user avatar
1 vote
1 answer
119 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 ...
Norbert Pozsonyi's user avatar
2 votes
3 answers
360 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. [ ...
Gugu72's user avatar
  • 121
0 votes
1 answer
87 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=...
user avatar
0 votes
1 answer
657 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 ...
Organic Heart's user avatar
1 vote
1 answer
3k 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 ...
DarthFloopy's user avatar
21 votes
2 answers
64k 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@...
AATHITH RAJENDRAN's user avatar
1 vote
0 answers
2k 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 ...
Guillaume Marmorat's user avatar
1 vote
1 answer
2k 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. ...
Digital Ninja's user avatar

1 2
3
4 5
16