Questions tagged [public-key]

283 questions
3
votes
2 answers

Adding new user to AWS EC2 - Permission denied (publickey)

I am trying to set up a new user for my AWS EC2. I have followed step by step this tutorial but I get Permission denied (publickey) error. I tried as well creating a newuser-key-pair.pem from AWS EC2 console and ssh -i newuser-key-pair.pem…
Arturo
  • 423
  • 3
  • 6
  • 20
3
votes
1 answer

How to set up Git on remote instance using keys from local machine?

I have a setup where I can ssh into my remote server (ie a Google Compute instance) from my local machine. I used to be able to clone, push, and pull from a repository on my remote instance without adding any keys to my remote instance, nor adding…
modulitos
  • 335
  • 1
  • 3
  • 16
3
votes
2 answers

Permission denied (publickey)

I'm unable to ssh into my ubuntu server (I used to be able to but haven't tried for a couple of months). usually I use ssh user@ipaddress but I get the error Permission denied (publickey). so I tried ssh -o PubkeyAuthentication=no…
ed209
  • 187
  • 3
  • 8
3
votes
2 answers

how is a website certificate file cryptographically readable by windows?

I have a .crt file signed by a CA. I cat the file to see that it is ascii text. Yet when I double click on the .crt file in windows, it opens it up and somehow displays all the information that's inside of it. Is windows automatically trying all of…
Alexander Bird
  • 431
  • 2
  • 7
  • 14
3
votes
2 answers

Configure Ubuntu to allow ssh login via pulic/private key and sudo without password

I'm setting up a fresh Ubuntu 13.04 server. I created some users and copied their public keys for ssh authentication to their home folders. Login via password will be disabled. Everything works fine so far, but if I login via ssh + private key, I'm…
Achim
  • 149
  • 1
  • 7
3
votes
2 answers

SSH to bitbucket returing Permission Denied (publickey)

So I am trying to clone a repo to a directory on my Ubuntu server but I keep getting a Permission Denied (publickey) error. This is very weird because my output for ssh -T git@bitbucket.org shows success: mo@li515-148:/var/www$ ssh -T…
moesef
  • 255
  • 1
  • 2
  • 10
3
votes
2 answers

rsync to EC2 using ssh -i

I'm able to ssh -i mykey.pem to EC2. I'm able to scp -i mykey.pem to EC2. But when I try to rsync -avz -e "ssh -i mykey.pem" I get this error: Warning: Identity file mykey.pem not accessible: No such file or directory. Permission denied…
isomorphismes
  • 139
  • 2
  • 12
3
votes
4 answers

Key-Based SSH Permission denied (publickey) Ubuntu 12-04

I have configured sshd to accept key-based ssh logins with LogLevel on DEBUG, and uploaded my public key to ~/.ssh.authorized_keys, where permissions are set as: 700 ~/.ssh 600 ~/.ssh/authorized_keys From root, I can su - USERNAME. From the client…
3
votes
1 answer

How to log all fingerprints in sshd, even if the connection was unsuccessful?

I understand that by adjusting the LogLevel in /etc/ssh/sshd_config I can log the fingerprints when authentication is successful, but what I would like to do is to see a fingerprint of a key that was in fact unsuccessful. The practical problem is…
The Gruffalo
  • 131
  • 1
3
votes
1 answer

Crypto key storage and recovery -- best practices?

We have a bunch of SSH, GPG, SSL and other private keys that, obviously: must only be available to the smallest number of people possible can't be "lost" if a hard drive dies or the building burns down (because a lot of data would otherwise be…
Johannes Ernst
  • 1,097
  • 5
  • 17
  • 27
3
votes
2 answers

Setting up authentication on virtual machine

I'm creating a system similar to a cloud computing provider using the libvirt python bindings. I would like to give users the ability to specify a custom virtual machine image, in a similar fashion to AWS. I would like to generate SSH key pairs on…
GaretJax
  • 140
  • 6
2
votes
1 answer

Correct configuration of the SSHD config file?

I'm using ssh on my linux box, I want to secure it to be as watertight as possible, only allowing ssh via ed25519 elliptic curve crypto sigs. I thought I had it setup correctly, disabling password, no PAM, etc. It seemed to be working properly but…
Woodstock
  • 103
  • 1
  • 1
  • 11
2
votes
2 answers

how to create status of REMOTE HOST IDENTIFICATION HAS CHANGED when performing ssh to remote machine for testing

We want to cause the status from a remote Linux machine to return "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! …
shalom
  • 461
  • 13
  • 29
2
votes
1 answer

Display public keys + fingerprints of Dropbear SSH server

While I normally use OpenSSH I have Dropbear installed on a Debian system to provide a small SSH server for unlocking disk encryption during initramfs boot phase. Dropbear and OpenSSH have different formats key files. I also don’t want them to share…
Daniel Böhmer
  • 271
  • 2
  • 13
2
votes
1 answer

Verify authenticity of SSH host on Digital Ocean droplet (FreeBSD)

When first connecting via SSH with keys to a newly minted Digital Ocean droplet VM running FreeBSD (per this tutorial), we get a message about “The authenticity of host blah-blah can’t be established”. I understand this means my computer has no…
Basil Bourque
  • 851
  • 1
  • 11
  • 22