Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

SSH keys are an authorization mechanism for SSH involving public-key cryptography. It consists of

  • A private/public key pair generated by a utility like ssh-keygen.
  • A configured (in /etc/ssh/sshd_config) SSH daemon that allows public key authentication.
  • A configured user account that has the public key copied to ~/.ssh/authorized_keys.
792 questions
0
votes
2 answers

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 fictional): ~ λ ssh -v 34.89.154.144 OpenSSH_8.3p1,…
0
votes
1 answer

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 can direct me right direction because I have…
danone
  • 166
  • 1
  • 10
0
votes
1 answer

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.
onkami
  • 101
  • 2
0
votes
1 answer

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 clear answer on which approach is the most…
0
votes
1 answer

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 instance: 35.187.215.2 (Now I made it Static…
0
votes
0 answers

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) I am in a terminal session and ssh-askpass…
RabidMutant
  • 123
  • 5
0
votes
2 answers

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 normally, using Omnibus (the bash script that…
Alex Eastman
  • 111
  • 3
0
votes
1 answer

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 the fact that it is on an unstable, soon to be out…
0
votes
0 answers

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 were using "userA" for SSH. But when password of…
AWS_Beginner
  • 181
  • 5
0
votes
1 answer

How to connect GCP, VM machine with WinSCP

I created Virtual machine (VM) instance in the GCP but unable to connect with WinSCP from the windows machine. I created on VM instance in the GCP then generated pub key by using command ssh-keygen and upload in the WinSCP…
0
votes
0 answers

Issues with seamless ssh connect via public key

I am trying to set up a seamless ssh connection from one server to another for the first time. While I think I managed to create a user and fitting rsa keys just fine, I can't actually connect via ssh, as it is giving me an Permission denied…
daZza
  • 101
  • 2
0
votes
1 answer

Using Password-Protected SSH Keys for Unattended Scripts on Remote Server

From PC1, I SSH into SERVER1 where I have a bash script, that will SSH & auth to SERVER2 using an SSH-key that's password-protected. Everything works fine when I manually execute my script, using ssh-agent to load my password-protected key into…
0
votes
0 answers

Adding SSH keys to local machine's SSH agent using Ansible

I'm trying to automate some of my personal server setup using Ansible, in order to wipe my disk clean and migrate to Ubuntu 20.04. Part of this process is installing the SSH keys I use for Github access. The SSH public/secret keys are stored in…
Mark LeMoine
  • 201
  • 1
  • 3
  • 7
0
votes
0 answers

ssh public key auth fails for private git server

I want to git push from a local debian 10 user to my server (debian 10) where I have set up a git server under the username git using ssh public key auth. The problem is: it still asks for the password. First of all, pushing via password works fine.…
Pratched
  • 101
  • 2
0
votes
1 answer

Automating SSH authentication to GitHub - what should ~/.ssh/config file look like?

I'm trying to automate logins to GitHub using a private key, so that I can do "git pull/add/commit/push" from a BASH script. If I put this in ~/.ssh/config, it works: Hostname github.com User git IdentityFile ~/.ssh/mygitkey.pem Unfortunately,…
John Heyer
  • 211
  • 1
  • 3
  • 10