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
2
votes
2 answers

Different ssh fingerprints on server. (MITM attack?)

When I try to ssh to my server in Germany from my UK laptop I get: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been…
Wojtek B.
  • 161
  • 1
  • 7
2
votes
2 answers

Cannot SSH after resetting firewall on VPS

I'm having trouble trying to SSH to my Debian 5 VPS with blacknight. It was working fine until I did the following: Logged into 'Parallels Infrastructure Manager' -> Container -> Firewall -> Set to 'Normal Firewall settings'. It told me there was an…
2
votes
1 answer

Is it possible to kill SSH connections that aren't running a command (e.g. with -N)

If a client does not execute a command (e.g. with -N) within some timeframe (1-2 seconds) after establishing the SSH connection, I'd like to terminate it from the server. Unfortunately, ForceCommand and authorized_keys-prefixed commands do not…
Bo Jeanes
  • 1,520
  • 2
  • 13
  • 17
2
votes
1 answer

Deploying git repo on production server without account password

What I would like to do How can I clone a git repository on my production server, without providing the account's password, and passphrase for the SSH key? Perhaps what I'm asking is not possible. For the passphrase problem, I could generate the key…
eoinoc
  • 165
  • 1
  • 6
2
votes
1 answer

Why would ssh-agent forwarding not work for particular users?

I'm having a ridiculous amount of difficulty getting SSH agent forwarding to work effectively for two users. Both can login to a remote servers without a problem, and it looks like their agents are being forwarded properly (on the server, "echo…
user1028587
  • 61
  • 1
  • 5
2
votes
1 answer

Duplicity restore reports "Invalid SSH password" when I'm using a private key for connection

I'm testing the restoration of a backup with duplicity 0.6.15. I can login to my backup server just fine using ssh and sftp using the following commands and my private key: ...sftp root@client:~# sftp -oPort=7843 backupUser@192.168.x.x Enter…
leeand00
  • 4,869
  • 15
  • 69
  • 110
2
votes
5 answers

SSH - using keys works, but not in a script

I'm kind of confused, I have set up public keys between two servers and it works great, sort of. It only works if I ssh manually from a terminal. When I put the ssh command into a python script, it asks me for a password to login. The script is…
Garfonzo
  • 499
  • 2
  • 18
2
votes
2 answers

Can't seem to SSH into AWS EC2 instance, ssh permission denied error

I've launched a new EC2 instance with AWS using Amazon 64 bit linux (amzn-ami-2011.09.1.x86_64-ebs (ami-20506254)) and I'm having trouble ssh-ing into it. I've generated a public/private ssh keypair using ssh-keygen -t rsa and added the .pub…
Casey Flynn
  • 217
  • 4
  • 13
2
votes
1 answer

Most secure way to issue commands on ubuntu cluster with sudo'ing user?

This is sort of a follow-up question to an unanswered question I have regarding administration of Cloudera cluster, but I figure generalizing the question to all of Ubuntu may help me get an answer. I want to be able to start/stop the same service…
Dolan Antenucci
  • 329
  • 1
  • 4
  • 16
2
votes
1 answer

Setting up RSA with multiple users

I've recently set up a server, and I've set up RSA authentication on said server. My question is, how do I set up RSA authentication for different users? As of right now, the only user that has RSA auth is root, and I'd rather not keep it that…
pinktrink
  • 21
  • 1
2
votes
2 answers

Public SSH keys not working for all users on same server

I have a VPS on which I have multiple "users" (all me, for different things). I configured my local SSH public keys and used ssh-copy-id to copy to all of them. I am able to login without a password prompt only for some of them, however, and it's…
Thomas Thorogood
  • 211
  • 2
  • 13
2
votes
2 answers

Unable to SSH into EC2 instance

I've read through the existing answers to this topic, but I still can't seem to connect. I've created an AWS key and saved to my ~/.ssh folder. The command: ssh -i ~/.ssh/jdrake.pem ec2-user@ec2-75-101-217-120.compute-1.amazonaws.com -v results…
2
votes
2 answers

Cannot SSH into Ubuntu 10.10 running on EC2 as new user

Please help me understand how I can solve my SSH problem: I can SSH into my EC2 instance running Ubuntu 10.10 'Maverick Meerkat' no problem with: $ ssh -i MyEC2Key.pem ubuntu@ec2-01-LALALALALALA.eu-west-1.compute.amazonaws.com My issue arises when…
Rob McCardle
  • 135
  • 10
2
votes
1 answer

general ssh security - certificate authentication

I've used this article: http://developer.apple.com/library/mac/#documentation/MacOSXServer/Conceptual/XServer_ProgrammingGuide/Articles/SSH.html in order to help set up ssh certificates (I'm on mac os x). I see that the keys are put in a file called…
Matthew
  • 1,859
  • 4
  • 22
  • 32
2
votes
1 answer

Resolve which public key user uses to access server

Is it possible to resolve, which public key is used to grant user access to a server? For example, there are 5 public keys stored in ~/.ssh/authorized_keys file. I'd like to know which key has the most frequency of usage and count every auth event…
hsz
  • 259
  • 2
  • 7