Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

153 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
1 answer
2k views

Is it possible to authenticate to Sonatype Nexus via ssh keys

Is it possible to authenticate to Sonatype Nexus via ssh keys or any other method that does not require user password in maven settings.xml? I know there are user generated tokens in Sonatype Nexus ...
Andrzej Rehmann's user avatar
5 votes
0 answers
13k views

What is the meaning of this line from ssh output: 'Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling'?

Everything works, ssh connects using private-public ssh key pair. Just few things in ssh -v Ora2 output isn't clear for me. This is complete ssh -v Ora2 output: PS C:\Users\roeslermichal> ssh -v ...
michal roesler's user avatar
5 votes
2 answers
2k views

AWS connection error: Permission denied (publickey)

Sorry if this sounds redundant to you but trust me its not. I have tried almost majority of the links related to this problem but nothing is working for me so far. I even tried this article two. Below ...
Waqas Jamal's user avatar
3 votes
0 answers
4k views

Using SSH key for install npm module from private repository inside docker

I make container for nodejs project. Inside the project I am using private repository. I need an access to it. For that I am using next Dockerfile FROM node:15 RUN echo "StrictHostKeyChecking no&...
Eugene's user avatar
  • 157
3 votes
0 answers
1k views

Mac OSX - SSHD partially broken after El Capitan Upgrade

I recently upgraded my firm's Mac Mini device to El Capitan from Yosemite, and encountered several issues during the upgrade. I've gotten most of them resolved but one that's still failing is the SSH ...
Nick L's user avatar
  • 31
3 votes
1 answer
585 views

Is rbash secure if user login and ssh passwords are disabled?

I've got a server that I want to use as an SSH gateway for remote and local port forwarding. I don't want arbitrary commands to be able to be executed on it, only my scripts. I keep reading about how ...
Ivan X's user avatar
  • 131
2 votes
1 answer
153 views

User account auto-creation using SSH certificate authentication

My SSH server is configured to use certificate authentication, so it will trust anyone who presents a certificate issued by the user CA when they connect. For reasons related with audit logs, I don't ...
Jorge Carpio's user avatar
2 votes
1 answer
2k views

What does warning `client_input_hostkeys: received duplicated ssh-ed25519 host key` mean?

When I use scp to copy some files from a server, I've lately been getting the following warning: $ scp -rC myserver.com:~/test.log . client_input_hostkeys: received duplicated ssh-ed25519 host key I ...
Cornelius Roemer's user avatar
2 votes
0 answers
1k views

kex_exchange_identification: Connection closed by remote host

Trying to connect to web servers running on Centos 7 via jump server, earlier this connection used to work fine without any problems, but not sure now what went wrong. Following is the status $ ssh -...
Joel Divekar's user avatar
2 votes
0 answers
129 views

AWS SSH Login continues to fail even with new EC2 instance [Permission denied (PublicKey)]

I just started working with AWS to create a wordpress site on an EC2 instance (using the tutorial at https://www.youtube.com/watch?v=4WR7EFFLF04). Everything was working fine until I tried to add an ...
Josiah Palmer's user avatar
2 votes
0 answers
76 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
2 votes
3 answers
367 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
2 votes
2 answers
1k views

Securely sharing SSH access in a team with SSH bastion

I need to share SSH access to a number of servers with my teammates and looking for a secure way to do it. I came up with a configuration involving a SSH bastion server, but not sure how (and if) it ...
ivangretsky's user avatar
2 votes
1 answer
8k views

problems with ssh connection: sometimes succesfull/sometimes timeout/sometimes hangs

I have a problem with ssh connection. I am using my Ubuntu 16.04 client to connect to the Centos7 server. I use ssh-key pairs to establish connections. But then a lot of weird things happen: Sometimes ...
K.I.'s user avatar
  • 153
2 votes
0 answers
15k views

requirement "uid >= 1000" not met by user "root" in CentOS

I have a server with CentOS. Am trying to configure and connect to the server using a Public SSH-Key, I configured all: user, user folder, .ssh, etc. Now, trying to connect I get this error in the ...
Sredny M Casanova's user avatar
2 votes
0 answers
517 views

EC2 SSH Login Temporarily Hangs on "Entering Interactive Session"

I've been researching this for hours now, can't figure out why this is happening. Originally marked it as internet but checked my speeds (37 down, 10 up). I went from California to Oregon, and since ...
Quinn Finney's user avatar
2 votes
1 answer
1k views

How to make ssh send a certificate for a key stored on a smartcard

I have a gpg key I use through a smartcard (yubikey neo) to ssh to many hosts. Some of these hosts use certificates as well as keys to authorize logins. For normal keys that are stored locally there ...
Arthur Ulfeldt's user avatar
2 votes
0 answers
2k views

ssh to ILO on a DL380 gives key_verify failed for server_host_key

When I try to do connect to the ILO 4 of a DL380 I get the following error: ssh -vvv ilo@me2_ilo OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading configuration data /etc/ssh/...
user221642's user avatar
2 votes
0 answers
2k views

Linux TACACS+ auth for SSH but allow users to use public key auth

we have running tacacs environment for centralised login to our routers, firewalls etc and even most of our linux boxes to ssh what we would like to do is allow users to authenticate to SSH via ...
anthonysomerset's user avatar
2 votes
0 answers
182 views

Unable to force passphraseless ssh authentication while port forwarding

I'm completely at a loss as to what is preventing my local machine from authenticating the connection that is being forwarded from the remote server. I've read a ton of the posts on here regarding ...
Dan Schmidt's user avatar
2 votes
1 answer
476 views

SSH dns issue giving break-in error

Address ... maps to ec2----.compute-1.amazonaws.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! I keep getting this when I try to log-in to my remote server. I have it ...
psion's user avatar
  • 139
2 votes
1 answer
162 views

Is it possible to kill SSH connections that aren't running a command (e.g. with -N)

If a client does not execute a command (e.g. with -N) within some timeframe (1-2 seconds) after establishing the SSH connection, I'd like to terminate it from the server. Unfortunately, ForceCommand ...
Bo Jeanes's user avatar
  • 1,530
1 vote
0 answers
188 views

Server host key changing frequently

Im trying to connect to my ubuntu server via ssh from Windows. Unlike my another ubuntu server from same dedicated server hosting, the server host key changing frequently. I get WARNING: REMOTE HOST ...
Mreza Nemati's user avatar
1 vote
1 answer
153 views

Remote Linux server GitHub permission denied publickey issues

I am experiencing publickey permission issues when trying to pull a private repo from GitHub to a remote Linux server. Update Ran ssh -v -o IdentitiesOnly=yes -i ~/.ssh/id_rsa [email protected] command ...
Mike Hermary's user avatar
1 vote
0 answers
822 views

Connection closed by remote host when copying client public key to sftp server

I want to copy the client public keys for a container to a remote sftp server and after that attempt do some uploads to the server via bash script(the bash script will be invoked when the container ...
Golide's user avatar
  • 143
1 vote
0 answers
30 views

no passphrase asked on copied ssh-key

I used an id_ed25519 key on a Debian Bullseye to connect to our remote servers, which had a passphrase. My laptop crashed so I recovered the key from a backup and started using it on an Ubuntu 22.04. ...
Jakke's user avatar
  • 141
1 vote
1 answer
1k views

Cannot ssh into newly created VM (with key used in creation)

So my cloud provider has you cut/paste or drag/drop the id_rsa.pub key when creating the instance. The provisioning process sticks that key in the appropriate place as part of the process. This works ...
komradebob's user avatar
1 vote
0 answers
1k views

ssh-copy-id does not update authorized_keys file

I can't configure ssh key on my Synology NAS. File ~/.ssh/authorized_keys is not created or not updated. On remote machine (NAS): $ cd $ chmod 700 . $ chmod 700 .ssh $ touch .ssh/authorized_keys $ ...
jootl's user avatar
  • 183
1 vote
0 answers
169 views

Allow SSH Public Key Login to User on Server without Password

I'm running a few Docker Container at home for some personal training purpose (only local) to educate myself. I want to SSH from one container to another container. Nearly everything is working. I ...
holger abend's user avatar
1 vote
1 answer
269 views

Unable connect to SSH GCE

I created a VM on Google Compute Engine. I had no problems connecting to SSH before but when I tried to upload files to FTP it crashed me out of the session, then I could not login to FTP at all and I ...
Menadzer Odzidzi's user avatar
1 vote
0 answers
217 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
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
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
1 vote
0 answers
1k 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
1 vote
1 answer
342 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
1 vote
1 answer
391 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
267 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
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
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
0 answers
514 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,197
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
  • 125
1 vote
0 answers
321 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
0 answers
739 views

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 ...
Eric Kelley's user avatar
1 vote
1 answer
398 views

SSH: remove key authentication to setup a new one

I have a VM with an OpenSSH server running on it. I messed up my SSH server public key authentication setting (installed everything in my SSH session on the VM and not from an external terminal on my ...
Wizzardzz 's user avatar
1 vote
0 answers
219 views

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

AWS EC2: Can't log into instance

A few days ago, I created a new key pair for a client's AWS EC2 instance. For some reason, I could no longer log in with the prior key pair I created. Immediately after creating a new SSH key pair, I ...
Brian Francoeur's user avatar
1 vote
1 answer
986 views

How to get Terraform to see the identity when using KeeAgent?

I am creating servers on AWS using Terraform on a Windows machine and that is working great. When they are created I want to install docker on them. However, after creating them, the SSH connection ...
titusn's user avatar
  • 111
1 vote
0 answers
646 views

SSH Gateway Pass-through Authentication

We are looking to configure a 'transparent' SSH gateway that passes authentication on to an upstream SSH server based upon the username in the SSH request. All users will be using public key ...
hermetik's user avatar
1 vote
0 answers
1k views

ssh-keyscan on os x not supporting diffie-hellman-group1-sha1

Trying to ssh and ssh-keyscan from Mac OS (Sierra 10.12.5) to a device, I was getting this error initially, "Unable to negotiate with 10.10.0.1 port 22: no matching key exchange method found. Their ...
radikyl's user avatar
  • 11
1 vote
4 answers
9k views

Reset "Too many authentication failures" on ubuntu without server access

I was recently given a bunch of keys and a bunch of servers and had to do some detective work to figure out which key matched which server. After a few tries (maybe 3?) SSH locked me out. My guess is ...
Tony's user avatar
  • 1,311