Questions tagged [ssh-keys]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 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 ...
0
votes
1answer
28 views

I need help changing where GitBash looks for the SSH keys on my Windows 10 machine

I am on a Windows 10 VDI provided by a client. I have set up git and when I try to use GitBash I get an error when it is attempting to find the ssh keys. The client has their VDIs set up to place the ...
0
votes
1answer
24 views

Unexplained cached public fingerprint for private ssh key with ssh-keygen

I'm having a weird problem with SSH. I'm using ssh-keygen -lf id_rsa to generate the public fingerprint from my private ssh key id_rsa. However, no matter how I replace or change the contents of my ...
1
vote
1answer
35 views

SSH password prompt even after configuring ssh key

I am trying to set up a passwordless ssh login to a remote host. For that I generated a public key wich I copied to /home/user/.ssh/authorized_keys As mentioned in various posts I checked that ...
0
votes
0answers
17 views

Clarification about correct procedure to register a new SSH rsa key

I need to register a new SSH key between my local Windows machine (guest) and the Linux server (host). I created a new RSA key and saved its fingerprint in a file too. Now I need to copy the public ...
0
votes
0answers
15 views

How to decrypt your ssh keys with pam_ssh module?

I was following this guide https://wiki.archlinux.org/index.php/SSH_keys#pam_ssh in order to setup automatic decryption of my ssh keys on login with my system password. The problem is that I don't ...
0
votes
1answer
304 views

ssh-copy-id can not work with `~/.ssh/config`

I am able to login to a server using ssh USER@HOST without password, but password is required if I enter ssh usdev which is configured in ~/.ssh/config like following: Host usdev HostName HOST ...
0
votes
1answer
39 views

How to write a Know_hosts file with md5 format?

I am trying to make a program that automates ssh connections. It can also be used in Windows, so as Putty only accepts MD5 fingerprint format for the hostkey I am trying to make ssh accept MD5 too: ...
0
votes
0answers
14 views

ssh access with key - only work for root account

I found online the possibility to acces Buffalo NAS with SSH. I'm trying to backup my server using rsync on a remote (NAS) destination and I'm aiming to access the NAS with a regular user, lets call ...
0
votes
0answers
52 views

Unable to get keychain (funtoo) to work with Centos 6

I recently set up key based ssh authentication for my workstation to a test server I have. The key based authentication works fine and I am able to log in just by entering a passphrase. In a quest ...
2
votes
1answer
43 views

When setting up an SSH tunnel user, authorized_keys directive “command=” blocks “permitopen” (Ubuntu 19.10)

I'm trying to set up a user account in Ubuntu 19.10 that can only set up a tunnel for port forwarding on a specific port (9229). I've created the user with a minimal home folder (just a .ssh folder ...
0
votes
2answers
50 views

SSH: Remote Host identification has changed

I have a machine running ubuntu and another one that is a mac. They are connected to the same router. In the past I could connect from my mac to the ubuntu one using ssh and the IP address and use of ...
1
vote
1answer
49 views

Generating private+public keypair for SSH: difference between ssh-keygen and openssl?

I want to create private and public key pairs to be used for SSH authentication. I can't figure out the difference between this: openssl genrsa -out MyPrivateKey 4096 openssl rsa -in MyPrivateKey -...
0
votes
1answer
66 views

SSH authentication methods questions

These days i look at the SSH protocol and iam trying to figure out how the password and public key authentication methods really work. In password authentication, i know that the client encrypts the ...
0
votes
1answer
49 views

SSHd of Linux Server keeps on getting failed and recovered every few hours

I am using Digital Ocean's Droplet Linux server, with Cpanel. It was all ok but now we are receiving continuous mails every 2 hours from Cpanel with title, "[Hostname] FAILED ⛔: sshd (Server IP ...
0
votes
0answers
181 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 ...
0
votes
1answer
32 views

Import private SSH key to new client machine

First of all this is not a question ultimately about copying a public SSH key to a server's authorized list (like many of the search results I looked through), I assure you. I have an SSH keypair ...
2
votes
2answers
85 views

Do I need to have different SSH key pairs if I want to connect to 2 different remote servers?

I am new to this SSH thing and I know my machine has already generated ssh key pairs in the past to connect to a server. If I want to connect to different server in different network, do I need to ...
0
votes
0answers
43 views

ssh fails between source and destination Linux servers

source Linux 10.9.9.11 -> destination Linux 10.0.9.99 I'm using custom ssh keys "/app/ssh_keys/id_rsa" Below are the permissions and public key (/app/ssh_keys/id_rsa.pub) entry on the destination ...
2
votes
0answers
169 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 ...
0
votes
0answers
35 views

(AWS) How to share SSH keys between multiple computers?

I own multiple laptops and I am trying to connect to an instance I have set up in AWS. I have no problem SSHing into the instance on the first laptop, but when I send the private key to one of my ...
0
votes
1answer
174 views

ssh-copy-id gives Permission Denied (publickey, pasword) on Kali root user

I have installed a Kali Linux recently as a VirtualBox VM and I was trying to set it up to have ssh access from my local computer. I changed PasswordAuthentication parameter to yes on Kali to use ssh-...
1
vote
1answer
570 views

How to quickly identify SSH private key file formats?

Triggered today by Remote Desktop Manager, whose SSH Key Generator offered to save a private key in OpenSSH format, but then proceeded to store it in PKCS#1 / OpenSSL format, while using the same ...
0
votes
1answer
130 views

Global SSH key, working for root user but not for other users

I am trying to set up a global ssh key, that will allow me to log into any account with just one key. So far added a global directory /etc/ssh/authorized_keys to the Authorized_Keys section of the ...
8
votes
3answers
2k views

Passwordless login via SSH from multiple computers

I'm trying to understand the concept of passwordless login via SSH. As far as I understand you create the SSH key pair on the computer on which you will connect FROM. Then copy the public key to the ...
3
votes
2answers
559 views

Not able to open PuTTy key generator on Mac

I am really new to PuTTY and PuTTY key generator as I am trying to setup EC2 on AWS. I have managed to install PuTTY on my Mac, and PuTTY works fine, but every time I click on PuTTY key generator I ...
0
votes
0answers
15 views

Vagrant ssh ask for password when on another hard drive

When I initialized my Vagrant file on my main hard drive (C:), if I try to vagrant ssh, it automatically logs me into the vagrant machine. However, when I moved it into another hard drive (let's say G:...
0
votes
0answers
39 views

SSH reverse tunnel issue

I have 3 computers. A, B and C. I want to SSH from computer A to C via B. I want to do this through key authentication method. Now, to make this work: I create a key pair on C, send the public key ...
0
votes
1answer
94 views

How can I import an SSH Key from my iPhone to MacOS?

I have created a "Run Script over SSH" shortcut in the Shortcuts app on my iPhone. I have created an SSH Key, and I can get the public and private parts of it. The Public looks like ssh-...
0
votes
1answer
294 views

SSH logging on Windows Server 2016 - “Server refused our key

I have an authentication problem in Windows Server 2016. I've created a Local User (not Administrator) that needs to connect via SSH authenticating with its private key. As Windows Server 2016 ...
1
vote
1answer
154 views

Configure SSH in Raspberry Pi using PuTTY (Server refused our key)

I am trying to set up the SSH configs on my Raspberry Pi at home so that I can login to it from wherever I want using PuTTY on Windows. I am a beginner and I barely understand what I am doing right ...
0
votes
1answer
314 views

authorized_keys -win 10 ssh issue

Raspbian Pi- SSH Client I used: sudo ssh -i /home/pi/.ssh/my_key - "Tom Smith@192.168.X.X" which in return asks for a password, which is not the output I want. I want to use the identity file. I ...
1
vote
0answers
67 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 *** **.**.**.** ...
1
vote
1answer
40 views

What's the fundamental principle regarding who should hold which key (public vs. private)?

In a SSH logging scenario, the client keeps the private key while the server stores the public key under its ./ssh directory. In a different scenario, such as SSL, it's the server that keeps the ...
2
votes
1answer
69 views

Why does my SSH keys only work sometimes?

I have setup SSH keys and Gentoo Keychain for quick and easy login to a server I sometimes access. What's weird is that keybased login works sometimes while other times it falls back to password. And ...
0
votes
0answers
255 views

“Connection reset by [IP] port 22” when trying to access server via SSH on MacOS

I am having trouble accessing the databases of my Wordpress using public and private SSH key access. I am trying to connect to the server and have exactly followed these steps. For the record: I ...
1
vote
0answers
70 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: ...
0
votes
1answer
2k views

SSH error on Linux : Failed to add the host to the list of known hosts

I am getting this error Failed to add the host to the list of known hosts (/home/my_user/.ssh/known_hosts). my_user@the_server.com: Permission denied (publickey). I struggle to figure out why ...
0
votes
0answers
51 views

How can I ssh into my RPi without a password without removing the password completely

I'm trying to append something to a file, from within a batch file. The file I want to append to is located on my Raspberry Pi, which I can SSH into. To avoid having to enter my password every time, ...
0
votes
0answers
35 views

How to get uid from ssh certificate attribute

I'm working on deployment of ssh certificates instead of just public keys in my organisation. My goal is to keep uid the same for each user across the infrastructure and I think the best way to ...
2
votes
2answers
950 views

SSH to MacOS refuses public key authentication

When I use ssh from a desktop linux machine to my MacOS laptop my public keys are rejected. I am able to connect using a password. I have looked at several questions similar to this one (e.g. 522652,...
0
votes
1answer
74 views

GCP Instance refuses key

I recently created a VM instance on the Google Cloud Platform and attempted to connect to it using WinSCP via the following steps: Created a ssh key pair using puttygen with [my_username]@gmail.com ...
1
vote
0answers
80 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 ...
0
votes
1answer
71 views

SSH asks password even so key has been added

I generated a ssh key for "ansible" user and it works all clients but one has SuSE (SLES) 11.4 OS. Host side ~/.ssh directory content: -rw-------. 1 ansible ansible 1675 May 14 2018 id_rsa -rw-r-...
0
votes
0answers
20 views

SSH key password only asked for once

I have created a public/private key pair and logged into my server with it. I have also copied it to the server under a user. It asked me for the password when logging in the first time but it doesn't ...
0
votes
0answers
28 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 ...
-1
votes
1answer
113 views

SSH keys should be generated with email or without email? [duplicate]

Tried to google for this basic query related to SSH key generation, but didn't get expected answer https://www.keycdn.com/support/create-ssh-key, https://www.digitalocean.com/community/tutorials/ssh-...
4
votes
1answer
292 views

Marketing Cloud SSH Key Generation: Inconsistency between PuTTY and ssh-keygen

After spending two months back and forth with Salesforce Support, I have finally worked out that in order to upload an SSH key in Key Management, you have to use PuTTYgen, not ssh-keygen (on Mac). ...
0
votes
0answers
17 views

Ubuntu 19.04 (Passwords and Keys manager) (BUG) (can't delete keys)

BUG: Would like to know if this is replicated for everyone... Create local SSH Key set (ed25519) in my case. Passwords and Keys manager (default app) automatically stores local copy. Manually delete ...
0
votes
1answer
70 views

Unable to SSH into CentOS HVM instance on AWS: No supported authentication methods available

I have a similar question to this other question, but the info provided doesn’t help me. I set up a CentOS HVM instance on AWS to learn Linux. My initial (root?) account centos can log in fine using ...

1
2 3 4 5
7