Questions tagged [key-authentication]

The tag has no usage guidance.

41 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
1k views

How to pass private ssh key via string, not a file?

I have a text of a private key file. I want to connect via ssh to other node, yet the gateway I am in does not provide me with file system access. How to pass a text representation of key and not a ...
3
votes
1answer
40 views

ssh won't connect with RSA key pairs iff /home directory is ceph-mounted

I've got the problem that on a server I maintain, after switching to a Ceph filesystem for the homedirectories, suddenly ssh login through RSA keys stopped working. I've tried checking several things ...
3
votes
0answers
2k views

Server refusing public key with PuTTY

I am configuring our new RHEL 7 server and I am have a real pickle in trying to get it to accept my private/public keypair. Everything seems similar enough compared to the sshd config from the older ...
3
votes
0answers
351 views

Cannot write to home directory/files when logging in via SSH with public key

I have been sshed into a remote host on and off all day, but suddenly can no longer write anything to my home directory despite having appropriate permissions. Read operations work fine, but ...
3
votes
0answers
934 views

Restrict SSH access to git usage only

Using: ssh-keygen -O force-command="/bin/restricted-command", or command="/bin/restricted-command" at the beginning of an authorized_keys line one can force a key-based SSH connection to execute ...
2
votes
0answers
3k views

Add LDAP server certificate to trusted list and enable certificate verification

I am trying to use a secure LDAP connection via TLS ldaps://<server_name>:<port> for various applications (e.g. Gitlab). However, the connection raises certificate errors which is due to ...
2
votes
0answers
129 views

SSH asking for passphrase although ssh-agent / keychain is running

Disclaimer: It would be very nice to read this question thoroughly before marking it as duplicate. I have read dozens of other questions (here, at superuser.com, serverfault.com and so on), all ...
2
votes
1answer
947 views

gnome-keyring-daemon components and their use

When reading gnome-keyring-daemon manual, one can see pretty clearly that the --components option has four valid values: ssh, secrets, gpg, and pkcs11. However, I couldn’t find any detailed ...
2
votes
0answers
2k views

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 ...
2
votes
1answer
1k views

Seahorse / GNOME Keyring does not recognize my new ed25519 SSH key, is there another way to have the key unlocked upon login?

I am unsure if I did the whole procedure right, so let's start with what I've done: $ ssh-keygen -vvv -o -a 1000 -t ed25519 -f ~/.ssh/id_ed25519 -C "$(whoami)@$(hostname)--$(date -I)" with some real ...
2
votes
1answer
4k views

Logging in through ssh tunnel with rsa key still giving password prompt

I have two laptops (Host A and Host C) with dynamic IP addresses and one desktop (Host B), all of which are running (Ubuntu) Linux. Right now I have things set up so I can access Host A from Host C as ...
1
vote
0answers
83 views

SSH Key authentication on WSL always says 'debug2: we did not send a packet, disable method'

/etc/ssh/sshd_config looks like this: pastebin.ubuntu.com link. It's default except I uncommented authorized keys, pubkey auth and listenaddress. Then I did ssh-copy-id -i ~/.ssh/id_ed25519 user@host,...
1
vote
0answers
32 views

ssh to one machine and than another wihout password

If I ssh a server from my work PC, I do not have to enter password, it uses keys for passwordless authentication. Yet If I use vpn and ssh to connect to my work PC (with a password) and then ssh to ...
1
vote
0answers
49 views

SSH publicKey auth fails in RH7.4

I'm trying to set publicKey authentication on my RH7.4. Exact same procedure worked on 6.5... so I cannot figure out what is missing. Tried also step after step from documentation and sites, but all ...
1
vote
0answers
29 views

How can I list which users can login without key auth?

I have recently been charged with a large amount of Ubuntu servers that are exclusively accessed via private/public SSH authentication. There is no information regarding how these servers were ...
1
vote
0answers
39 views

private key flash drive for server login

is there a way to make it so with my servers when I want to get into the console I can just plug in a flash drive with private keys on them that are trusted like the ones I have for ssh from my ...
1
vote
1answer
2k views

SSH Connection on Remmina using AWS public key

I am trying to login to remmina using the ssh .pub key. but when I try to connect it is asking me to ssh private key passphrase. I do not know what I am doing wrong but here is a debug log. [SSH] ...
1
vote
0answers
68 views

Ability to use GNUPG's Webkey as a Web Services authentication mechanism

Is there a way to use GNUPG's new Webkey capability to create a federated passwordless public key authentication mechanism for web services login? Something like the following architecture: .----...
1
vote
1answer
770 views

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 ...
1
vote
1answer
92 views

Remotely use SSH key authentication (3

I have a VM using ubuntu 14.04. running on a windows. If I use the terminal on the VM desktop, I can connect to my servers without passwords using registered SSH Keys. When I connect to the VM from ...
1
vote
0answers
1k views

How to add PuTTY private key to OpenSSH client

I am trying to setup scp on a new Ubuntu 14.04 system. This system will act as an SSH client to an already configured SSH server on another Ubuntu 14.04 system. I can use putty to SSH into the ...
1
vote
1answer
2k views

Creating MySQL database and user without password

I am building a set of bash scripts which basically prepare apache virtual hosts, git repositories and other stuff on a cloud server. So far so good, everything is working, but a big problem occurred: ...
1
vote
0answers
72 views

Using x509 PKI with PGP

I'm building x509 PKI. And I want to apply CA's concept to my own private apt-get repository. I just found that apt-get repository (reprepro) use PGP certificate and some textbook said they can't use ...
0
votes
0answers
16 views

Registration of new nodes in a network

We install Debian (server variant) on a new client node (possibly behind a masquerader) in our network. Now we need to assign an autogenerated UID and secret keys(s) (for SSH and for API such as ...
0
votes
0answers
38 views

How to set SSH key file to different directory?

Using Debian 8. I need a myuser user, which should have no password, just key file based SSH login. My /etc/passwd contains the following: myuser:x:11:11:myuser:/my/specific/path:/usr/sbin/nologin ...
0
votes
0answers
22 views

What are the performance overheads between logging in to another user account via ssh vs login

In Gnu/linux systems, I can perform a full local login (i.e. where logname returns the same output as whoami) by two methods: login: sudo login second_user (prompted for password) ssh: ssh ...
0
votes
0answers
38 views

Create Passwordless SSH login without exectuting SSH-KEYGEN on Client?

The normal installation/configuration of SSH on a client requires the use of ssh-keygen to create a local private/public key pair in the .ssh folder of the user's profile. To configure the normal, ...
0
votes
0answers
39 views

configure ssh to allow login with ssh key (and no google 2FA) or password + google 2FA?

I'd like to configure my (debian) machine to allow ssh logins with two different options for authentication: ssh public key authentication password authentication with a (google) 2 factor ...
0
votes
1answer
304 views

SFTP over Midnight Commander still asks for a password

In linux command line, when I connect to sftp or ssh this, it connects using my public keys and doesn't ask me for a password. sftp user@host It also works when I do ssh user@host But somehow ...
0
votes
0answers
115 views

Passwordless SCP from automated script - NO ADMIN RIGHTS server side

I have a cloudways server with no admin rights. I have set up ssh keys using their website interface, to use ssh and scp without passwords from a raspberry pi 3b+ running stretch, however i am having ...
0
votes
0answers
75 views

Why Xagent can't work in Xshell 6 when connectting other servers for SSH key authentication

I want to avoid input password when remote other servers after login jump server. So I setuped Public Key User Authentication like below and it can work in jump server. But then when I try to remote ...
0
votes
0answers
235 views

ssh to another user of the same host using dns domain

Is it a problem to ssh to another user of the same host using dns domain? I cannot conigure it. I cannot configure it to passwordless connection. Also when I am trying to connect with password the ...
0
votes
0answers
457 views

SSH Login success, Permission denied in remote machine

I copied the ssh public key to a remote linux server with ssh-copy-id. (Ref: here) . And I am able to login with local@Me$ ssh myuser@remote.ser.ver login success myuser@remote $ ll drwxr-xr-x 3 ...
0
votes
0answers
293 views

Key in DER format. Convert to line for .ssh/authorized_keys?

I have a file in DER format. I want to convert this file to a line for .ssh/authorized_keys. How could this be done?
0
votes
1answer
347 views

Can't login with rsa key on a Raspbian

I've installed a Raspbian system, and would like to ssh to it using my private key. I use this key with other servers too, thus I'm sure chmod is set up well locally. When I try to ssh to the ...
0
votes
0answers
341 views

Why would my putty key be refused “server refused our key”, but works on next attempt?

I use PuTTY, and I use a key generated with PuTTYgen. My server is a VPS running Ubuntu 14.04 (perhaps this belongs on askubuntu, but I think it may not be Ubuntu specific). The public portion of the ...
0
votes
1answer
381 views

openSSL Key and Certificate

As far as I know, in an authenticated SSL connection, both the client and server have private keys and provide their certificates (with the corresponding public keys) across the connection before ...
0
votes
0answers
450 views

Added new user, but can't access account - public key encryption

I added a new user to one of our servers, but can't log in to it via putty. The error message is "Server refused our key", and from putty, "Disconnected: no supported authentication methods available (...
0
votes
0answers
624 views

ssh publickey authentication to a Ubuntu running inside VirtualBox

I have a Ubuntu running inside a VirtualBox inside my Windows 8 desktop. I am trying to communicate between the Ubuntu and another Debian server in the network. I have enabled Port Forwarding in ...
-1
votes
1answer
154 views

Using public keys for SSH authentication on several servers

I'm using a key pairs method for authenticating my sftp client on a remore server, that is a black box for me. So I've sent them the public key that I've generated with ssh-keygen command. So far ...