Questions tagged [ssh-keys]

The tag has no usage guidance.

172 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
16k views

How do I change the allowed host key algorithms for SSH?

I am writing an application which uses the libssh library. I am trying to establish a connection from the client side where the app runs to the server. However, instead of connecting, I get an error ...
DocDriven's user avatar
  • 171
4 votes
0 answers
10k views

Permission denied (publickey) with error message: receive packet: type 51

I can log into all Ubuntu instances with gcp using the same SSH keys, except for one instance, with the Admin creating a user for me, adding me to the sudo and admin groups, adding my pub key there as ...
user389955's user avatar
4 votes
0 answers
457 views

Changed home directory permissions on remote server, can no longer ssh into it

I changed the permissions on my ~ directory, and according to this question about ssh and home directory permissions I can no longer ssh into my remote server because it rejects my public key. Is ...
user730569's user avatar
3 votes
0 answers
248 views

What is this entry in my ssh known_hosts file?

I was taking a look at my ssh known_hosts file, and it only included 2 entries. The first line was the GitHub keys, so nothing weird there. However, the second line had a bunch of Chinese text, which ...
cruzazulini's user avatar
3 votes
0 answers
340 views

What should go in an ssh key comment?

I noticed when I list my identities with ssh-id -l that I can't differentiate them because they were all created by me on this PC, so the comments take the form of user@mypc which is not particularly ...
GameKyuubi's user avatar
3 votes
0 answers
993 views

SSHFS keeps asking for a password despite ssh key present

I have a valid SSH key on my client, and my public key is uploaded on the remote server. I can login with the SSH key without being prompted for password using SSH, but when I try doing so with SSHFS ...
Nikolay Shindarov's user avatar
3 votes
0 answers
594 views

FileZilla sftp attempts to authorize via key before set password

I'm using FileZilla to sftp into a remote server. The logon type is "normal" with a username and password set. However, when I try to connect, based on level 3 debugging in FileZilla, it tries all of ...
Brian's user avatar
  • 31
2 votes
0 answers
40 views

Why is the key pair generated on the iOS switch [SSH server], not on the client?

I've been going through book CCNA 200-301 Official Cert Guide, Volume 1, as I'm learning for the CCNA exam: CCNA_200-301_Official_Cert_Guide/Odom,_Wendell_-_CCNA_200-301_Official_Cert_Guide,_Volume_1....
John Smith's user avatar
2 votes
0 answers
966 views

Secure Windows SSH Key with Windows Hello / TPM

I want to secure my Windows SSH Key with Windows Hello (my fingerprint / TPM) instead of a simple passphrase. I found that OpenSSH can do this since v8.9 ( https://man.openbsd.org/ssh-keygen#...
xsrf's user avatar
  • 131
2 votes
1 answer
327 views

PEM formatted SSH cert with RFC 4716 format keys

I am trying to get a ssh cert for sftp setup with 3rd party vendor in pem format and should be SSH2, using RSA algo with the Key lengths of 2048. Do the below steps make some sense (Please correct me ...
raviv0731's user avatar
2 votes
0 answers
92 views

use rsync with autossh

I'm trying to use rsync with autossh on my laptop, so it can also work when internet connection is less reliable, but it doesn't really do as I'd like it to do. The starting point is that I have an ...
Richard Rosner's user avatar
2 votes
0 answers
4k views

Why am I getting a bad signature for RSA key error with Rysnc crontab between Linux and macOS?

I'm trying to Rsync backups into another machine on a LAN. I've copied my key over and even using SSH manually, I get the following error, which keeps my crontabs from connecting: ...
Rich_F's user avatar
  • 121
2 votes
0 answers
4k views

Permission denied (publickey). On Windows Subsystem for Linux

I am new to SSH and have been looking for a solution for this for long now. I am trying to connect to my uni's server that runs on Ubuntu from my WSL (I am using wsl2) via ssh. My Subsystem also runs ...
luCAT's user avatar
  • 21
2 votes
0 answers
168 views

ssh-keygen creates private key with incorrect permissions

When using ssh-keygen without any arguments to generate my ssh keys, it generates both the public and private keys with 644 permissions, making the private key too open to be used. I am running Ubuntu ...
zogden's user avatar
  • 21
2 votes
0 answers
4k views

sshd: Connection reset by IP [preauth]

Initial Post here (closed as not relevant to ServerFault) I have a raspberry pi with only Key based authentication enabled. When I try to ssh to it using the local IP, it works. But when I try to ...
Kunal's user avatar
  • 21
2 votes
0 answers
271 views

Ssh- Connection(ssh) to user through one machine only prompts for ssh-password, but through all other machine, it asks for user password

Edit 01/31/2020: I tried to run ``` sshd -t ```` in two different machines from my side, and I got this: mavridks@rh04359:~$ sshd -t /etc/ssh/sshd_config line 16: Deprecated option ...
Constantine Black's user avatar
2 votes
2 answers
2k views

ssh-copy-id to a tcsh on Solaris?

Im trying to copy a public key to the ~/.ssh/authorized_keys file on a Solaris server. It fails with this error message: $ ssh-copy-id -i ~/.ssh/id_rsa.pub <USER>@<HOST> /usr/bin/ssh-copy-...
gmolau's user avatar
  • 121
2 votes
1 answer
684 views

Restrict few commands for users in SSH key based authentication?

Currently we are using SSH password authentication, and now we want to move to SSH key based authentication. We have multiple users using the same server. How can we restrict certain users from ...
Ash's user avatar
  • 97
2 votes
0 answers
4k views

Can't login on server using ssh [Too many authentication failures]

I'm not able to login in the server. I keep getting this error: Received disconnect from 128.238.182.77: 2: Too many authentication failures for bmpasini It happened to me before and I solved by ...
bmpasini's user avatar
  • 121
2 votes
0 answers
186 views

ssh-add on compute engine ubuntu vm for out going

I have an id_rsa key that I use to connect via scp to a remote server that I've moved to my Ubuntu GCE. I have dropped the key (id_rsa) into main user .ssh folder, chmod 600 but ssh-add won't pick it ...
barnamos's user avatar
2 votes
1 answer
489 views

Ubuntu unlock ssh key at every usage

I have an SSH private key and I would like to be asked for the password every time if it is used. I don't know how to do this... Thank you!
Hans Wurst's user avatar
2 votes
0 answers
3k views

SSH keys cached remotely?

I wanted to install a new public key on a remote server. I created a keypair using ssh-keygen -t rsa on my Macbook, then added its public key to authorized_keys on the remote server. It is the only ...
doque's user avatar
  • 223
2 votes
1 answer
2k views

ssh localhost password-less Login not working

I have been trying to ssh localhost into the same machine. I copied the generated public key into the authorized_keys file. It still doesn't work. I have spent hours on trying to find a solution to ...
Rahul's user avatar
  • 21
2 votes
0 answers
2k views

ssh Prompts For Password After Account Unlocked - Despite ssh key?

Here's what happened: I set up ssh key so that user could ssh from A to B without a password. I got user's password wrong in some other context too many times, and user's account got locked out. (IT ...
user1011471's user avatar
2 votes
1 answer
2k views

SSH Key Exchange from Cygwin to Ubuntu Fails

I'm trying to SSH from a Windows/Cygwin to Ubuntu. I am not using PuTTY. Instead, I'm using Cygwin ssh, which should be OpenSSH. I used ssh-user-config on the Windows machine to generate my key ...
jennykwan's user avatar
  • 297
1 vote
0 answers
50 views

Why does FileZilla start its own ssh-agent process?

Why does FileZilla start its own ssh-agent process? When I open my terminal, an ssh-agent gets created with socket location /var/folders/sm/4bt9kz951dg4s5kq1jwy57tc0000gn/T//ssh-nWola5Puaw6o/agent....
kataba's user avatar
  • 11
1 vote
0 answers
25 views

Is it possible to display "visual client keys" in the sshd log?

I found recently that the ssh VisualHostKey setting is very useful for server "users" to determine that their host is the correct host, but is there a way to log the "visual key" (...
Lazerbeak12345's user avatar
1 vote
0 answers
245 views

SSH into windows 10 pc with Termux using keypair

So i want to SSH into my windows 10 pc via termux On server windoes 10 pc: 1.)installed OpenSSH using optional windows features. 2.)enabled the respective services On client termux app: -generated ...
AwesomeVk47's user avatar
1 vote
1 answer
432 views

SFTP connection hangs on "SSH2_MSG_KEXINIT sent"

I am struggling to connect via SFTP to my AWS test account from my on-prem server. When I cd into the directory where my private ssh-key and run sftp -v -i <private_key_file> <client>@<...
Norealname's user avatar
1 vote
0 answers
319 views

OpenSSH sshd.exe does not start with KexAlgorithms parameter

Running OpenSSH Server 8.1p on Windows Server 2016 DC When I add the parameter "KexAlgorithms" in the sshd_config, the service fails to start. I want to add legacy support for key methods ...
Daryl's user avatar
  • 11
1 vote
0 answers
1k views

ssh login failed with public key

I use publickey to do ssh login and failed. Here is my sshd config, sshd logs. sshd config: Port 1046 Protocol 2 PermitRootLogin no ChallengeResponseAuthentication no PasswordAuthentication no ...
Leslie__Joe's user avatar
1 vote
0 answers
471 views

How can I connect to my SSH on DigitalOcean droplet? permission denied. (git bash Windows)

How can I connect to my droplet in DigitalOcean using the openssh to be able to install my SSL Certificate, I've already added my SSH key to the droplet and my fingerprint is there, but each time I ...
Ibrahim Hafez's user avatar
1 vote
1 answer
628 views

using a known host key with a reverse-tunneled ssh gateway

I'm using reverse tunneling to provide access to an SSH server via ProxyJump, but I'm having trouble getting the client to remember the host public key. Despite indicating it "permanently added ...
MooseBoys's user avatar
  • 293
1 vote
0 answers
2k views

SFTP with public and private keys

I want to use private and public keys for access to the SFTP server, instead of a username/password mechanism. SFTP server should be available only for a specific user that can log in from whatever IP ...
coding's user avatar
  • 111
1 vote
1 answer
2k views

Guacamole ssh login details not correct

So in a previous question I was trying to log into localhost's shell via guacamole. The solution was to enable password authentication for localhost connections in the sshd config. So I looked at the ...
user avatar
1 vote
0 answers
914 views

Unable to generate Ed25519 Key

FYI..this is the first time I'm generating/upgrading any key. It may happen that my question sounds silly , so sorry for that. I'm referring https://medium.com/risan/upgrade-your-ssh-key-to-ed25519-...
channa's user avatar
  • 117
1 vote
0 answers
3k views

Error connecting to agent: no such file or directory - adding key to ssh agent

I am trying to add key that I have generated to the ssh agent. Below are my steps C:\repo>ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (C:\Users\mante1/....
Automation89's user avatar
1 vote
1 answer
611 views

Prevent SSH key to be automatically added to agent

Is there a way to prevent a certain SSH key to be automatically added to an SSH agent while all others are automatically added? For example, assume all my keys are protected by a passphrase. I would ...
Max Maier's user avatar
  • 111
1 vote
1 answer
2k views

ssh-keygen, is it possible same public key generated? (ssh public key duplicate)

Is it possible same public key generated? In the following example, the two keys(test1.pub, test2.pub) created are different public key. $ ssh-keygen -C IsItPossible Generating public/private rsa key ...
SangHak Lee's user avatar
1 vote
0 answers
382 views

SSH | Permission denied (publickey)

I have two VMs in Google Cloud: I need to establish SSH connection between them. I generate a key in vm by ssh-keygen. saviord7@vm:~/.ssh$ ls -l total 12 -rw------- 1 saviord7 saviord7 1766 Aug 19 15:...
user388794's user avatar
1 vote
0 answers
1k views

Proftpd: Use public key only to connect

My requirement is such that there must be a custom proftpd docker image which any user can use. The user will run the docker container using the image and on running will mount a mount path to the ...
user1452759's user avatar
1 vote
1 answer
1k views

ssh-agent not persistent after some amount of time (no reboot)

I am using Suse 12 on VM, it is left running and never off/rebooted. I use TCSH and would call > eval 'ssh-agent -c' > ssh-add > <put passphrase here> And then ssh login to servers/...
mohdyusuf's user avatar
  • 111
1 vote
0 answers
4k views

Permission settings on SSH authorized_keys for user group

I have several users who would like to access a SSH server viapublic - private key pair. I'd like to have a single private key distributed across all of them, and then have it matched with an ...
user1173240's user avatar
1 vote
0 answers
114 views

Which key is in use when ssh logging into my EC2 instance?

After a ssh-keyscan I opened my generated known_hosts file, and found that there are 3 instead of 1 key for my EC2 instance. **.**.**.** ssh-rsa ****** **.**.**.** ecdsa-sha2-nistp256 *** **.**.**.** ...
北美38fule's user avatar
1 vote
0 answers
496 views

: Permission denied (publickey)

i am trying to do gerrit review using ssh command line argument.i am getting error as : Permission denied (publickey).for .ssh folder. i tried with below steps also still no luck. .ssh directory: ...
Leela's user avatar
  • 11
1 vote
0 answers
265 views

ssh stops working on CentOS 8 (GCE VM)

ssh stops working on CentOS 8 (GCE VM) I had ssh working correctly with a pub/private key pair working just fine for two days on a GCE CentOS 8 VM, and it stopped working. Now I get: Permission ...
user10664542's user avatar
1 vote
0 answers
181 views

When using an SSH jumpbox, is it possible to defer to the jumpbox for authentication?

I am connecting to a private SSH server by way of a jumpbox. Unfortunately, this requires me to put my public key on all of the private servers since the authentication is still resolved from my local ...
jinxidoru's user avatar
  • 111
1 vote
0 answers
2k views

OpenSSH resetting connection when I try to SSH

I'm trying to set up my local Windows 7 machine to receive SSH connections so I tried to follow this guide on how to install OpenSSH into a Windows machine to server as an SSH server. I was able to ...
dokgu's user avatar
  • 113
1 vote
0 answers
43 views

How should I pass secrets in cmd.exe

My quesiton particularly targets passing an SSH key to a docker build command, where I want to clone a private repository from github. In order to keep the key private, I just want to pass it as a ...
Florian Bachmann's user avatar
1 vote
0 answers
3k views

Automatically load SSH key on Windows startup

The software context here is Windows 10 + Git for Windows, which comes with a lot of extra tools, some of which I mention below. I have several private repositories on BitBucket. In order to to avoid ...
Radu Murzea's user avatar