Questions tagged [ssh-keys]

The tag has no usage guidance.

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

Setting up password less login on remote server

I am trying to set up password less login to my remote server that I use for work. Currently I have to type in my password every time to login, and then again to switch to the appuser using sudo su - ...
0
votes
0answers
10 views

Setup Password Less login direct to appuser

My current work setup for our servers requires me to ssh user@server1 and then enter in my password. I then have to sudo su - appuser after and enter in my password again to get to the files that I ...
0
votes
1answer
24 views

Use SSH keys on several machines

So I try this for my first machine lets name it M1 ssh-keygen -b 4096 leaving the file name as default, and then copy the public keys to the server (S1): scp ~/.ssh/id_ras.pub hostamne@172.16.254.1:~...
0
votes
1answer
21 views

Failed to Load ECDSA P521 Host Key on Windows SSH Server

I am trying to generate an ecdsa p521 host key on my Windows 10 SSH Server as my client only supports ecdsa 521 key. Thus, I have used the following steps but I failed to load the p521 host key from ...
0
votes
0answers
12 views

Need to update new ssh public key on all target hosts using CyberArK

I can do this using Ansible. However, I would like to know detailed steps; if cyber ark has a feature or function to update a new public ssh key on all target hosts(Linux) authorized_keys file? Also ...
1
vote
1answer
45 views

Git pull doesn't ask for passphrase

I use ssh keys for authentication with various remote git repositories. I have project A hosted in Azure and project B on GitLab. My ~/.ssh/config looks like so: $ cat ~/.ssh/config Host vs-ssh....
1
vote
0answers
18 views

Ssh keys on docker gitlab-ce

The announcement for GitLab 13.10 has a deprecation notice for using authorized_keys for ssh keys: The first mechanism (integration via authorized keys ) is vulnerable to both race conditions and out-...
1
vote
1answer
21 views

How to get old SSH fingerprint format?

SSH has gone through several fingerprint formats and visualization methods. There are MD5 and SHA256 for formats. Hex, Base64 and ramdomart are different visualizations. For a short time, however, ...
0
votes
1answer
22 views

How can i switch to root from ad login to send ssh keys to /root/.ssh/authorized-keys

I am trying to send ssh keys to multiple servers from jump server using shell script. I can only login from my ad account and then switch to root and cannot login directly as root. Having this ...
0
votes
0answers
34 views

ssh - prompting for password even for non encryption key

I wanted to do the ssh from my local machine to a remote server. I tried with this: ssh user@server I copied my private keys into .ssh/id_dsa into my user home directory, and see my private key is ...
1
vote
2answers
282 views

Dockerfile: clone repo with passwordless private key. Errors: “authentication agent” or “read_passphrase: can't open /dev/tty”

I try to clone a test project from GitLab using a Dockerfile and an SSH key pair: ssh-keygen -t rsa -P "". The private key is passwordless, the public key is published at the GitLab account. ...
0
votes
1answer
17 views

Bastion with private keys, jailed users and proxycommand

I want to setup a bastion for SSH and tunneling HTTP : let the user use a private key stored on bastion without having read access to it permit the use of proxyjump (or proxycommand) on the client ...
0
votes
0answers
10 views

Setting up a pem based login for Mac to ubuntu

0 1 I work normally on a mac and I regularly need to SSH into a particular ubuntu machine. I normally use something like ssh -p 22 -Y feargal@<ubuntu_servername> This opens a new terminal window ...
0
votes
0answers
13 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-...
0
votes
0answers
282 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 ...
0
votes
1answer
28 views

SSH Connection with keys (no password) follows a One-way traffic?

I have a general question about SSH connections. Have already checked some related posts and documents about the matter but could not find a straight answer. SSH Connection using keys presumes the ...
0
votes
2answers
74 views

Why does chmod not work on bash emulation on windows?

I have just installed Git 2.30.1 for windows and generated ssh keys with ssh-keygen -t ed25519 -C "me@email.com". My private key has the permission 644 and I can't change it with chmod. When ...
0
votes
0answers
22 views

Cannot ssh one of the gcp compute engines

I have created ssh key using ssh-keygen -t rsa -f ~/.ssh/[KEY_FILENAME] following https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys#createsshkeys I have added the public key ~/....
0
votes
0answers
17 views

Using cloud-init to reload authorized_keys on every reboot, without changing host keys

I'm using proxmox and cloud-init to configure virtual machines based on debian, and setting the authorized SSH public keys that can be used to connect to the virtual machines using SSH. I'd like to be ...
0
votes
0answers
41 views

ssh keys works for root works on two clients to same server, but not for another user

My question is simple. I have 2 clients (A and B). Both clients are OSX (mac). I configured ssh keys to connect passwordless to the same server (Debian Server). User root (the user which I use for ...
0
votes
0answers
35 views

SSH private key to access remote GUI

I am new to SSH and i want to log into a remote server using private key i generated using puttygen. I have already sent my public key to the server admin. I was instructed to execute following ...
0
votes
2answers
33 views

How to ssh to EC2 *without* having to specify the .pem file?

There must be some easier way than the documented ssh -i my.pem user@ip-addr, by putting the pem file in ~/.ssh and ssh knowing to use my.pem based on user@ip-addr, but I can't figure out how.
1
vote
0answers
23 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 ...
0
votes
0answers
40 views

Permission denied (publickey) after reinstalling system

My ssh key isn't working as I get the message USER@SERVER: Permission denied (publickey). This is pretty strange as it worked before I reinstalled my system and still works on other systems. The ssh ...
0
votes
0answers
19 views

OpenWrt using SSH with key-based authentication

On OpenWrt, I deactivated password on Dropbear to use SSH key (RSA) but now on Debian, with the terminal, I can't login as usual, is there a kind of setup to allow the connection?
1
vote
0answers
147 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/....
1
vote
1answer
34 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 ...
0
votes
0answers
12 views

Multiple hardware devices with SSH and GPG agent

The SSH_AUTH_SOCK environment variable allows you to specify the socket path that can be used to talk to your hardware device like your Yubikey, secure enclave or other smart card. My dilemma is that ...
-1
votes
1answer
33 views

How do host machine know about the private key in the machine which is doing ssh in it [ssh-copy-ip method ]

with this method ssh -i private key ubuntu_A@1.2.3.4 i am telling that here is my private key and ubuntu_A matches my private key with the public key in Authorized_keys . i am confused with ssh-...
0
votes
1answer
33 views

ssh failing on a user with a password that contains special char on the first symbol

When trying to do: ssh -oBatchMode=yes -4 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ssh fails when the password of the remote linux user starts with a special char(for example !...
1
vote
1answer
39 views

Locking and Unlocking SSH Keys after an amount of time

I am trying to have a SSH generated key, where you need to unlock it with a password and then you can login on the server the whole day without password. But when the day is over, the key should get ...
0
votes
0answers
19 views

SSH Key works fine but won't work if I change client

I am testing a Red Hat 8 Google VM. I've created my keys and everything works fine. I am using the following command in order to connect (Mobaxterm) ssh -i PathToMy/key.pkk myusername@111.111.111.111 ...
1
vote
1answer
58 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 ...
0
votes
0answers
20 views

Unable to login to Google Compute Engine using winscp after downgrading

I was running one Compute Instance on GC and used winscp to login fine for 1.5 years. Earlier, I added SSH keys under metadata and all I had to do whenever I restarted the instance is to change the ...
0
votes
0answers
29 views

SSL Client authentication Certificate and Key , Why?

I'm studying the SSL Client authentication in a server to send specific rest API. I'm using cURL to send the request and I'm following the instruction from a company. I can send the request and ...
0
votes
1answer
264 views

The ssh-keygen command not making a key on Windows

I am trying to create a new ssh key but when running ssh-keygen -rsa -b 4096 it does not generate the key. It looks like the following: > ssh-keygen -rsa -b 4096 no keys found. My .ssh folder ...
0
votes
0answers
8 views

SSH-Key looking for a simple solution

I'm trying to copy my ssh-keys into my docker, it's a very simple docker including some LinuxTools via Package Manager. A asking because, I can't come up with a simple solution ADD/COPY seem not to ...
2
votes
1answer
101 views

Why are there different id_rsa key lengths between a new Mac, an old Mac and an old Windows machine

When I execute ssh-keygen -t rsa on my Windows and an old Mac I get a 38 line id_rsa file. When I execute the same command on a new Mac I get a 27 line file. Just wondering why I get different results?...
1
vote
1answer
1k views

How do I use KeePassXC as an SSH agent?

There's an SSH Agent tab in KeePassXC's options. How do I use it to manage my SSH keys across multiple Windows and Linux machines?
0
votes
1answer
218 views

Current directory in SSH config

I have a project which has all the id_rsa files and an SSH config in it, which has entries something like this: Host projectname-server-1 User root Hostname 26.139.18.47 IdentityFile ./...
0
votes
1answer
31 views

Why ssh-keygen and ssh fingerprint is different? [duplicate]

xiaojie@ubuntu:~/.ssh$ cat ~/.ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDiRDV1OlNoxzLaJI0Z2kWtrfD4FINaU3uwuH5e0VmkbkkG/tbD61R5pFHw2z3ZlPPYNP0NbWIzWUIA4gpCkMUgSg/lFsO6Ti3ppKBOEHy/uoEWvDgIbHu/...
0
votes
1answer
671 views

shell request failed on channel 0

im using ssh to connect my university server ssh <myusername>@<server_Address> after I enter my password I get this Error: -bash: fork: retry: No child processes and the second time I ...
0
votes
0answers
18 views

How to add public key to existing Azure Linux Virtual Machine

I want to grant a new user access to our Azure Linux Virtual Machine, he has created his SSH keys, i want to add his Public key to the Virtual Machine so as to grant him access. How do I add his ...
0
votes
1answer
64 views

SSH Key Not Auto Logging In

I'm trying to add my ssh key to a server so I don't have to enter the password when I ssh. I ran ssh-copy-id -i ~/.ssh/id_rsa.pub YOUR_USER_NAME@IP_ADDRESS_OF_THE_SERVER from this tutorial and I can ...
2
votes
0answers
24 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 ...
0
votes
0answers
336 views

SSH - No response after “SSH2_MSG_KEXINIT sent” on MacOS

Could not find any recent solution to this problem. My connection on the client side just hangs after this: "SSH2_MSG_KEXINIT sent" on MacOS. This is the output of the terminal: OpenSSH_8....
1
vote
1answer
867 views

SSH can't find id_rsa and id_rsa.pub files on Windows 10 [duplicate]

id_rsa and id_rsa.pub are located in K:\Batch\mySSH, with script K:\Batch\mySSH\runme.cmd being called from Excel (via VBA), containing the following: pushd %~dp0 set home=%CD:~0,2%\Batch\mySSH %...
1
vote
1answer
173 views

why does ssh to localhost as another user on windows 10 still asks for password even after key-pair is set up?

I am using Windows 10 as Username: poh I want to ssh into localhost as another User: ml I have done the following steps in Powershell: ssh-keygen -t rsa ssh ml@localhost mkdir -p .ssh cat .ssh/...
1
vote
1answer
63 views

What should I do to ssh with a key to a remote server from a Linux machine, when I can already ssh from a Windows machine using PuTTY?

From PuTTY, I can ssh log to a remote server since my public key has been "registered" to this server. By now I can access this server through only this computer running PuTTY. However I'd ...
0
votes
0answers
39 views

Github uses the wrong SSH key pair

I have two SSH key pairs in my ~/.ssh folder. One of them is for a VPS I have run for several years, and the other one is a new key pair for a company I have started. I have tried removing the old ...

1
2 3 4 5
8