Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

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

I have created new .ppk file with new passphrase from .pem file. How do I disable the access using the old ppk with old passphrase?

I am using a Centos based EC2 instance and had shared the ppk file with a passphrase with the team. Now I want to secure it and hence generated ppk file with new passphrase using Puttygen. But I can ...
1
vote
0answers
45 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 ...
0
votes
0answers
157 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 -...
0
votes
2answers
52 views

How to manage the keys in my ~/.ssh/authorized_keys on the server? (login without requiring password each time on a particular machine)

I am trying to follow this answer to login to my server via ssh without typing my extremely long password each time: https://serverfault.com/a/241593/295203 Right now I have 6 keys in my ...
1
vote
1answer
37 views

Password security of encrypted SSH private key: How to read round number or costfactor of bcrypt

Here https://security.stackexchange.com/a/52564 you can read that newer OpenSSH versions use bcrypt for protecting the keyfile. Security of bcrypt depends on the costfactor see https://security....
0
votes
0answers
41 views

Puppet - ssh_known_hosts not being populated correctly

I have a server X that is not getting the complete ssh_known_hosts file and another server Y getting the complete list. I don't see the same errors on the server Y, both the servers should be getting ...
1
vote
1answer
49 views

How can I share the SSH keyes between two users on a CentOs 7 machine?

I am not a sysadmin\network specialist (I am s software developer) and I am finding the following difficulty working on a Linux CentOS 7 remote machine of a customer. I am using MobaxTerm to connect ...
0
votes
0answers
26 views

Force all successful SSH logins to a single account

Is there a way to force sshd to accept logins on any username but to actually log in to the machine as a specific user? Our team has a number of EC2 instances in AWS, and I can configure them with the ...
-1
votes
1answer
55 views

Best way to lock out a group once per week [duplicate]

A SSH server I admin is to be allowed login from a group of users all days of week except sunday. How would be your elegant solution to this? Thanks any input on comments or creative +and+ secure ...
0
votes
0answers
47 views

Not able to SSH into VM using any of the authorized IDs even from console

I am not able to SSH into my VM on google cloud. The only thing that has changed is that I have now upgraded my account to a paid account from free account. My billing subscription was expired before ...
0
votes
2answers
48 views

SSH wont log into VPS using DNS

I'm working on a Virtual Machine where I have Ubuntu Server, in that server I connect to my cloud server (ubuntu), via ssh , but when I tried to log in with this syntax: ssh subdomain.example.com It ...
0
votes
1answer
56 views

What is the best method for adding RSA Key Fingerprints to known_hosts upon provisioning each server?

This question was inspired by this thread The hypothetical scenario, for context is as follows: SSH servers, whether they be routers, firewalls etc. are all firstly provisioned within a private + ...
0
votes
2answers
45 views

Accidently removed user profile with SSH key

I accidentally removed my user profile with SSH key on google cloud VM, so now I don't even have the possibility to connect to that machine. It's not a big deal since that VM is for testing purposes, ...
1
vote
1answer
50 views

Why can't I use scp after having set up ssh-copy-id

I rent a shared hosting server. I have set up the login to be through keys (private/public) by the use of ssh-copy-id, and now that works when i type ssh user@12.34.56.121 (Since I choose to have a ...
0
votes
1answer
35 views

missing ssh key in results returned by ssh-keyscan?

in short [newbie here] Why can't I find my SSH key with which I connect to my server in what is returned by ssh-keyscan -H my_server_address ? I rent a dedicated server based on Debian 10 (OVH) The ...
2
votes
1answer
79 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 ...
1
vote
0answers
25 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 ...
0
votes
2answers
58 views

how can we edit ssh keys of VM In GCP Please guide

My ssh Keys in Vm Instance are showing "expireOn":"2020-11-20T00:06:44+000" since then i am unable to connect to my VM and also not able to connect via SSH Please guide on how to ...
0
votes
1answer
117 views

I want to combine my rsa.public with my rsa.private to a .pfx that I can use to digitally sign an xml file

Here is the code I have so far: for the private key: openssl genrsa -out rsa.private 1024 for the public key: openssl rsa -in rsa.private -out rsa.public -pubout -outform PEM Then I'm trying to ...
0
votes
0answers
38 views

SSH connection strange behavior

I am using windows10 and I can connect to my server(Ubuntu 18.04) with PowerShell and Putty. but not with the other two ssh client I have (MobaXtrem,Bitvise). but when i turn on my VPN(SeedVpn) on ...
1
vote
1answer
61 views

ssh-keygen: signing syntax - help needed with options

I am trying to sign some SSH keys with restricted options. My initial attempt was as follows: ssh-keygen -s /path/to/ca-ssh.pem -D opensc-pkcs11.so -n barfoo -O no-agent-forwarding -O no-port-...
2
votes
2answers
916 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 ...
0
votes
2answers
161 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 ...
2
votes
1answer
667 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 ...
1
vote
0answers
76 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 ...
0
votes
2answers
118 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 ...
0
votes
1answer
2k 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 ...
1
vote
1answer
34 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 ...
0
votes
1answer
174 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 ...
2
votes
1answer
50 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 ...
0
votes
1answer
70 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.
1
vote
0answers
637 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 ...
0
votes
1answer
69 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 ...
2
votes
0answers
32 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 ...
1
vote
1answer
96 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 ...
0
votes
1answer
88 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 ...
2
votes
1answer
147 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 ...
0
votes
1answer
150 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 ...
0
votes
0answers
29 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) ...
-1
votes
1answer
119 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
1
vote
0answers
430 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 ...
0
votes
2answers
255 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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
469 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 ...
2
votes
0answers
140 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 ...
0
votes
1answer
64 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 ...
0
votes
0answers
38 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 ...
2
votes
2answers
186 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 ...
0
votes
1answer
50 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 ...

1
2 3 4 5
15