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
3 answers

ssh-copy-id in one line with password, possible?

I'm trying to setup an automated script in Ansible to set a new server, and i'm using ssh-copy-id to add the Ansible master server to the new server's authorized ssh keys. I created a script which uses ssh-copy-id, but that command is asking for the…
shaharmor
  • 337
  • 4
  • 16
2
votes
0 answers

Unable to force passphraseless ssh authentication while port forwarding

I'm completely at a loss as to what is preventing my local machine from authenticating the connection that is being forwarded from the remote server. I've read a ton of the posts on here regarding this and man, I swear I've tried damn near…
2
votes
2 answers

How to ssh into ec2 instance running centos as a newly created user?

I am able to ssh into an ec2 instance as the root user using the private key .pem that was generated when I created the instance. $ ssh -i Desktop/key.pem root@123.us-west-2.compute.amazonaws.com I then created a new user $ useradd dummy When I…
user784637
  • 1,542
  • 7
  • 35
  • 52
2
votes
1 answer

Default ubuntu user deleted, unable to access EC2 Instance via SSH

This is my first foray into using EC2, and I created my first instance using an Amazon AMI running Ubuntu 12.04. I created a keypair and downloaded the .pem file to my local machine. I was able to connect via SSH via the ubuntu user just fine. I…
wonder95
  • 123
  • 2
2
votes
2 answers

Reverse ssh-agent forwarding. Using a remote ssh key

I have my github.com private ssh key in an ssh-agent on a key server. From my home computer behind NAT I want to run git pull and use my github ssh key. The only way I know of doing this is to ssh into the key server and forward port 22, then ssh…
Collin Anderson
  • 431
  • 2
  • 6
  • 13
2
votes
1 answer

ssh public key authentication

I have tried to configure ssh to use public key authentication The link /etc/ssh/sshd_config has got this parameters. RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes But I'm still…
Jvrq
  • 75
  • 1
  • 5
2
votes
1 answer

ssh server: could not load host key

I'm configuring ssh server, but have faced an issue. First I generate the private/public rsa keys with: ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key and set password on prompt. Then try to start sshd: /etc/init.d/ssh start but get errors: Could…
Pavel A
  • 153
  • 2
  • 13
2
votes
2 answers

How do I set up an AWS instance to allow others to SSH in?

I've recently set up a AWS EC2 instance (using an Ubuntu AMI) for a web project. I of course created a public/private pem key which I sued to log in a and set up the instance. Now I have a new developer who needs to be able SSH into the instance as…
Showcaselfloyd
  • 425
  • 1
  • 5
  • 7
2
votes
1 answer

Why does ssh public key authentication stop working when I am tunneling ssh commands through a machine?

On Computer A, I have a public and private key for my github account. When I use this machine directly, using a connected keyboard and display, I can do all the git remote repo commands, like git pull and git push, as well as ssh -vv git@github.com.…
dan
  • 847
  • 2
  • 9
  • 11
2
votes
1 answer

Copying SSH Key-Pair Generated by Putty to MacOS

i have a target BSD machine where i connect to from my windows box, i copied the public and private key pairs that are generated by putty and i'm trying to use them on a different laptop with Mac OS. I copied the keys to ~/.ssh/ folder here on MAC…
juan
  • 21
  • 1
2
votes
2 answers

Creating SSH key for remote host

I am beginning work with a remote host. They require a "SSH KEY" from my server. How can I create a SSH Key that they can use to allow connections from my server? I would like to assign the key to a specific SSH user on my server if possible. I'm…
Michael Ecklund
  • 251
  • 2
  • 5
  • 13
2
votes
2 answers

automatic ssh key generation

In linux, If I added a file or a directory in /etc/skel, when I create a user this get the file or dir in skel. with ssh-keygen -t rsa I can create the ssh keys how I can automatically create the ssh keys each time when I added a user?
JuanPablo
  • 913
  • 3
  • 10
  • 21
2
votes
1 answer

SSH host key changed - except it actually hasn't

I've just tried to SSH in to a server that I've been doing so without problems for a while, and received a warning that the server's host key has changed. But it hasn't! On the server, I've checked the hosts key which is being referenced in…
melkamo
  • 213
  • 1
  • 2
  • 6
2
votes
1 answer

SSH dns issue giving break-in error

Address ... maps to ec2----.compute-1.amazonaws.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! I keep getting this when I try to log-in to my remote server. I have it set for key authentication and when this error comes…
psion
  • 139
  • 1
  • 7
2
votes
1 answer

SSH How to ignore checking IdentityFile?

I have setup a config file located at "~/.ssh/config" which contains some IdentityFile lines to point to the key files that I use for some of my servers. e.g. IdentityFile ~/Data/Keys/KeyFile.pem This works fine when I want to connect to my…
liamTc
  • 237
  • 3
  • 4
  • 9