Public key authentication is a way to authenticate to a remote computer and enable encryption of the connection. This is generally more secure than an authentication with a password.
Questions tagged [public-key-authentication]
17 questions
9
votes
6 answers
SSH: "Server refused our key" with no reason
I was trying to set up a simple backup script to run automatically that would copy a file from a Windows machine to a Linux one through SSH.
As a lot of simple online tutorials suggest I used pscp with a private key generated with puttygen and…
besnico
- 91
- 1
- 1
- 4
7
votes
2 answers
temporarily disable login using one specific ssh key
On my server, I have several public SSH keys in ~/.ssh/authorized_keys.
I would like to temporarily block/disallow/deactivate one key. I want to prevent the user to log in using this key now. but I might want to reanable it later (i.e. I don't want…
Martin Vegter
- 69
- 66
- 195
- 326
6
votes
1 answer
SSH public keys not working; my home directory is encrypted
I installed Ubuntu LTS 14.04 server edition on a remote computer, and added my local public key to ~/.ssh/authorized_keys on the remote computer. I found that I still needed to use password to log in the remote computer, even after setting the…
shva
- 163
- 1
- 4
6
votes
1 answer
Centos 6.5 not able to login with public key and login is sloooooow
I set up a new system with CentOS 6.5. I copied my public key key with:
ssh-copy-id [email protected]
It took 15+ seconds for the password prompt to show, but then it copied.
However ssh to [email protected] still asks for the password. The…
centi
- 65
- 1
- 7
6
votes
1 answer
SSH Public Key authentication - works only after a physical login
I am trying to connect via SSH to my ubuntu server with public key authentication.
For some reasons I get an "Permission denied (publickey)." on the client, whenever I execute
ssh -i ~/.ssh/id_rsa @ -p .
The auth.log on my…
caiuspb
- 163
- 1
- 5
5
votes
1 answer
ssh public key authentication not working
I had my keys set up so I can ssh between machines without having to enter a password and everything was working for a while but then, all of a sudden, I'm being prompted for a password on some machines.
I verified the keys - everything appears to…
ventsyv
- 989
- 3
- 13
- 21
4
votes
3 answers
Why can't I use public/private key authentication with ssh on Arch Linux?
I have the following setup on an Ubuntu machine:
~/dotfiles/authorized_keys2
~/.ssh/authorized_keys2 -> /home/wayne/dotfiles/authorized_keys2
I had the same setup on my Arch machine, but when I connect with -v,
debug1: Authentications that can…
Wayne Werner
- 11,463
- 8
- 29
- 43
3
votes
1 answer
My cloud server came with PermitRootLogin without-password, is it normal?
I was just wondering if it is normal that in the Ubuntu 14 provided by my cloud hosting company,there is this configuration in the file /etc/ssh/sshd_config :
PermitRootLogin without-password
instead of
PermitRootLogin yes
Therefore, it means that…
Simon Paquet
- 143
- 1
- 5
2
votes
0 answers
Force OpenSSH / pam / pam_ldapd to do pam_ldapd(sshd:auth) with public-key authentication
I have working pam_ldap authentication using libpam_ldapd. I'm using slapo-nssov and want to use loginStatus attribute which is added to users ldap entry after opening pam session and deleted when its closed. It works only with ssh password…
Jakub Jindra
- 1,392
- 1
- 12
- 25
2
votes
1 answer
SSH: how to connect withou password knowing only passphrase?
Short question:
I got a task to update a git repository. Information I received is following: host, port, user name and ssh key's passphrase with information that key's type is rsa. How can configure PC to connect without using a password? Is it…
Neelam
- 123
- 4
2
votes
2 answers
RHEL 7 (CentOS 7) security / ssh / sshd_config advise requested
I am not a sysadmin and try to create a more or less secure web server (LAMP based CentOS 7).
I read several tutorials about setup an initial CentOS 7 droplet and got everything running fine.
However, I am struggling in understanding some basic…
frank
- 237
- 1
- 6
- 17
2
votes
1 answer
SSH not giving indication that the public key is being used for login
I have a public key to log on to my server. This key is password protected. However, when I log in to my server, there's no indication that the key is ever used. I just log in with my password as before. What kind of messages can I expect using…
nerdenator
- 283
- 1
- 3
- 14
2
votes
2 answers
Safe way of letting users upload their public keys
I need to let untrusted users, strangers, upload their id_rsa.pub to my server and onto a given user's authorized_keys (user git in my case). What is the safest way of achieving that, without having to do anything manually?
I am particularily…
Flavius
- 351
- 1
- 9
2
votes
1 answer
OS X SSH keeps asking for password
I connect from a Linux machine to several Macs over ssh using public/private keys.
The setup is the identical on every ac, different OSs from 10.5 to 10.9 and publickey working. Only one of them, running OS X 10.9.5, keeps asking for user's password…
akeeem
- 21
- 3
1
vote
1 answer
How does 'ssh-copy-id' work under the hood?
What does the program ssh-copy-id actually do under the hood? Can the steps be explained as if to a child with a good understanding of computer science?
Does it use protocols already existing in the SSH specification, or does it use "trickery" to…
IQAndreas
- 10,145
- 21
- 59
- 79