Questions tagged [public-key]
283 questions
2
votes
3 answers
Add a Public Key to an Ubuntu EC2 server via SSH
I’m trying to add my friend’s public key to my Ubuntu EC2 server via the ssh terminal but I can’t find the file that I paste the key in. Can anybody explain where the file is?

ProfitPhoenix
- 23
- 3
2
votes
2 answers
How to use PAM to manage lockout policy for ssh public key authentication methods
I have followed instructions on redhat on how to harden authentication on a linux server, but we only use SSH with public key auth. According to these…

alexfvolk
- 164
- 2
- 10
2
votes
1 answer
Make Gitolite retrieve ssh keys from LDAP
I think I have some understanding problems with what I want to achieve...
So, let's start with what's currently working (all described servers are running CentOS 7) :
an OpenLDAP server which contains users' public keys
a "data" server running an…

zrtYouyou
- 21
- 3
2
votes
0 answers
requirement "uid >= 1000" not met by user "root" in CentOS
I have a server with CentOS. Am trying to configure and connect to the server using a Public SSH-Key, I configured all: user, user folder, .ssh, etc.
Now, trying to connect I get this error in the client machine:
Permission denied…

Sredny M Casanova
- 129
- 1
- 1
- 3
2
votes
1 answer
Public key authentication with strongswan
I have two systems r1 and r2, and I want to establish an ESP tunnel between them with Strongswan using public key authentication. I have generated public keys, store in r1-pub.pem and r2-pub.pem respectively, in both the systems using openssl.
Now…

Soumen
- 123
- 1
- 5
2
votes
1 answer
Restrict SSH login to public key from public networks, but allow password from internal networks
Assume UserA is allowed to log in by SSH to a server from public networks as well as from within private ones.
Is there any option to restrict password-enabled logins to the private networks while enforcing public key authentication for the rest of…

luke
- 33
- 5
2
votes
3 answers
How to configure SSH access for key authentication for another client?
I know that if I want to configure SSH access for key authentication, I need to use the following command:
ssh-keygen -b 2048 -t rsa -C “mypassphrase”
I then need to copy the codes created in id_rsa.pub on my computer to the server's …

ajax20
- 110
- 1
- 1
- 6
2
votes
1 answer
Looking for a way to get team public keys to EC2 instance autonomously
I am administering a single (now) ec2 instance which will provide some tools to our users. I am using Ansible to manage it. I have it set to create users using a mix of a Cron-job and Ansible (by creating a list of users and having a playbook ensure…

catagon87
- 163
- 1
- 7
2
votes
3 answers
SSH connection with key is unreliable
Im an intern sysadmin for a small company. There's no real sysadmin in the place for me to ask when i encounter problems. Thanks for the help
The company uses Nagios to monitor their web server. They use connect_by_ssh to do so with public and…

littleadmin
- 177
- 1
- 1
- 11
2
votes
0 answers
Linux TACACS+ auth for SSH but allow users to use public key auth
we have running tacacs environment for centralised login to our routers, firewalls etc and even most of our linux boxes to ssh
what we would like to do is allow users to authenticate to SSH via public key auth rather than having to type there…

anthonysomerset
- 4,233
- 2
- 21
- 24
2
votes
3 answers
Weird SSH Issue - Single host not allowing me to login via name
Can anyone explain this, because I have done everything from regenerating keys, to "leaving" and rejoining the domain (Centrify) for an SSH host that I can't seem to get to by a single client. All other clients are able to access this host, except…

drewrockshard
- 1,763
- 4
- 20
- 27
2
votes
2 answers
Non-interactive SSH connection fails - error: can't open /dev/tty: No such device or address; Host key verification failed
Below you can see the log.
The connection is from a Cygwin SSH client to a Cygwin SSHD server.
The connection works ok when launched from the command line but fails when launched from Jenkins (Java Continuous Integration server).
The /dev/tty file…

oblio
- 375
- 1
- 3
- 12
2
votes
1 answer
Unable to submit certificate request to 2k8R2 CA
I have created a two-tier CA using Windows Server 2008 R2. The .inf files used to create this standalone root and an enterprise subCA are at the end of this post.
The root is installed OK and issued a certificate to the SubCA. The SubCA has in turn…

morleyc
- 1,150
- 13
- 47
- 89
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
2 answers
SSH Key not found logging into CentOS 5.5 from Windows (Cygwin)
I am having difficulties logging in to a VPS running CentOS 5.5 using Public key authentication. I can log in to both a standard user account and the root account using password authentication. I am using Windows and Cygwin, all Cygwin and Windows…

M1ke
- 175
- 1
- 10