Questions tagged [key-authentication]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
1answer
2k 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 ...
1
vote
3answers
50 views

ssh not allowing passwordless login

I use passwordless logins all the time and have set it up on numerous systems and have debugged a lot of issues with it. However, I'm in a situation that I can't diagnose the root cause. I have an ...
16
votes
3answers
14k views

Is it possible to have 2 ports open on SSH with 2 different authentication schemes?

I'm currently trying to set up an SSH server so that access to it from outside the network is ONLY allowed using an SSH Key and does not allow access to root or by any other username/password ...
0
votes
1answer
44 views

Trying to connect to remote server via SSH but still prompts for password

I generated a ssh key pair with ssh-keygen, use ssh-copy-id to the server and checked that the public key was added to authorized_keys, but then when i try to connect with ssh -i ~/.ssh/MY_KEY user@...
1
vote
1answer
40 views

Add an SSH key on boot

I have a Git repo that is authenticated with an SSH key - the key is not the standard id_rsa. I can run: eval $(ssh-agent -s) ssh-add /home/forge/.ssh/otherkey Then git pull origin master This ...
1
vote
1answer
87 views

How to mount Windows CIFS in Linux server using PKI authentication?

I have a Windows File Share server and want to mount those CIFS in Linux server using PKI authentication. This is the command to mount Windows shares in Linux using username & password: mount....
0
votes
2answers
50 views

SSH - Periodically require password even when public key is present

How do I allow public key authentication but still require user's password every 24 hours? Preferred host OS is Debian.
32
votes
10answers
102k views

SSH public key won't send to server

I've been struggling with this for a couple hours so any help is greatly appreciated... I have 2x servers both of which I can ssh to with public keys from OSX, no issues at all there so I'm certain ...
0
votes
0answers
6 views

dirmngr and gpg recv key no result

I've started dirmngr explicitly: dirmngr --daemon --homedir /home/person/.gnupg --http-proxy 192.168.0.1:6060 And i have a custom script to check for outgoing connections which flags any connections. ...
2
votes
1answer
47 views

Does ssh-add honor the declarations made in ssh_config file(s)?

Background I use a 4096-bit RSA key-pair for authorizing access to my server. By ssh_config files I am referring to ~/.ssh/config and /etc/ssh/ssh_config. Here's what my ~/.ssh/config looks like: ...
2
votes
2answers
54 views

Allow “another” user to make personal backups on my server through sshd with no shell access (public key login)

I have set up a Ubuntu server at my home just to learn "stuff". I overdid a bit and have some spare room on my SSD. I am prepared to give a friend some of that space to make backups on my computer. He ...
0
votes
1answer
51 views

How to Require PubkeyAuthentication using SSH from Linux client to Windows OpenSSH server

I know there are a million similar posts, but I have not yet found one that answers this question. I'm trying to establish an ssh connection from an Ubuntu 18.04 client to the built-in OpenSSH SSH ...
12
votes
4answers
4k views

How to make password-less login work

I generated a key and copied it to my target: ssh-keygen ssh-copy-id username@hostname I left the the location of the key as default and did not set any passphrase. For a small while after that, I ...
0
votes
2answers
25 views

Compare Key ID of RPM package with Key Fingerprint of RPM-GPG-KEY

During work with RPM packages I frequently need to validate signatures against available GPG keys. Using rpm -qip --nosignature <package.rpm> | grep Signature gives me an Key ID, i.e.: ...
4
votes
1answer
149 views

iwd with EAP-TLS fails with 'Failed to load <pem>'

I want to connect to an EAP-TLS access point using iwd, however this fails because it apparently cannot open my client key: # iwctl [iwd]# station wlan0 connect foo Not configured iwd says: src/...
0
votes
1answer
43 views

how to create scenario of REMOTE HOST IDENTIFICATION HAS CHANGED when performing ssh to remote machine for testing

we want to cause status from linux remote machine that return "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r", "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\r", "@@@@@@@...
0
votes
0answers
19 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 ...
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: ...
3
votes
1answer
50 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 ...
2
votes
1answer
968 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 ...
0
votes
1answer
28 views

Weird SSH behaviour

I have 3 computers. All have SSH running and All have No password mode on, PKI only. The first has a keyPair used for SSH access to the other two, call this machine A. Therefore, both B and C have A'...
2
votes
2answers
115 views

How does ssh-copy-id get the public key when only the private key is loaded?

When I have a private key loaded for a user, I can run ssh-copy-id user@remotehostname and will be prompted for a password. When I enter the correct password, I can now log in with the key. I have ...
0
votes
1answer
52 views

Required key not available when running nslookup, dig

I upgraded my system recently, and now I am seeing a really bizarre error, any ideas on what I can do to fix this issue?: nslookup 8.8.8.8 ../../../../lib/isc/unix/socket.c:2135: internal_send: 192....
2
votes
2answers
55 views

FreeBSD sudo root and ssh-agent

I'm trying to access a git server from my FreeBSD 11.3 box via root account. git server is secured to only allow access via SSH public key authentication. When I log into my FreeBSD box, I do that as ...
0
votes
2answers
73 views

SSH keys that can be used only in one machine

My requirement is simple. I have generated a SSH key-pair (Public and Private) on a server say "A". Now I have uploaded my Public SSH key in AWS IAM and have generated a SSH key ID to connect to a ...
1
vote
2answers
951 views

SSH key authentication works with /usr/sbin/ssh -d, does not with the daemon?

CentOS x64 6.5: if I connect as root to my server and do the following: service sshd stop /usr/sbin/ssh -d I'll able to connect as user using public key authentication from my development machine: ...
5
votes
4answers
9k views

dropbear ssh server won't let me connect

I'm trying to gain ssh access to my router. Currently I only have telnet access and I installed dropbear and is running (using opkg on a usb drive connected to the router). From the beginning, what I ...
3
votes
2answers
1k views

How to auto mount an ssh file system on demand with an RSA key

I am trying to auto mount a folder from my raspberry pi (/home/pi/server_folder), to a local folder (/home/my_name/raspberrypi). I can do this with sshfs (auto mount in fstab) when I set up a blank ...
2
votes
2answers
6k views

gpg: cancelled by user

Trying to create GPG keys which will be used for an apt repository hosted on my Centos7 box. I created a new user "apt", and then tried to create the keys, but at the very end, it states that I need ...
1
vote
1answer
40 views

SSH - Permission denied (publickey) - doesn't work in case of one node

I have 3 nodes: node A, B and C. A wants to connect to B and C via ssh. B and C are identical servers. A can connect to B but cannot to C. ssh user@node The error I see: Permission denied (...
57
votes
6answers
88k views

how to avoid ssh asking permission?

We are attempting to speed up the installation of oracle nodes for RAC installation. this requires that we get ssh installed and configured so that it doesn't prompt for a password. The problem is: ...
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] ...
0
votes
1answer
54 views

Passwordless (key based) SSH Access to a Linux system from a MAC?

New Edits: So I went back and did some significant testing and revised my opinions about my problem a little. First, here's a link to a thorough and quickly graspable diagram of the SSH Handshake (...
0
votes
0answers
40 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 ...
27
votes
4answers
33k views

SSH asking for passphrase on public key with no passphrase set

I have been using public key authentication on my servers for a while now, but I am experiencing issues on a new 'client' trying to connect to github. I have read many threads to verify that my ...
0
votes
1answer
37 views

Debian does't work ssh authorize key

I have server access on Debian on my machine №1. Authorization is good. I want to do the same on the machine №2. Generated keys, write public at the end ~/.ssh/authorized_keys. But I have an error ...
0
votes
1answer
58 views

SSH not using public/private keys

I have a system where SSH-ing still asks for the password even though: My public key is correctly in the authorized_keys file on the remote server. My private key is stored as id_rsa in my .ssh ...
-1
votes
2answers
8k views

“Permission denied (publickey,gssapi-keyex,gssapi-with-mic)” AWS .pem provided

I'm quite new to this and it's the second server that I setup on my own, it should be straight forward and simple but I'm getting this error. Looked all around but the solutions don't meet my ...
1
vote
0answers
42 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
320 views

sudo authentication when using SSH key auth with Keepass+Putty

I an using Putty to login via SSH to various Linux machines (mostly CentOS and Ubuntu). I use SSH key authentication, whereas the key ist stored in Keepass 2.x and handed over to Putty via tha ...
1
vote
0answers
127 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,...
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 ...
1
vote
0answers
33 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
1answer
24 views

Several representations for key fingerprint

In ssh server and client authentication, key fingerprints are presented in different ways, even using the same command ssh-keygen -lf (in different hosts or as regards different keys). Representation ...
0
votes
0answers
40 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
1answer
132 views

Is file specified in .ssh/config/IdentityFile private or public key?

If I specify in my ssh config Host myhost User myname IdentityFile mykey then what is IdentitfyFile: private or public key?
5
votes
2answers
531 views

Accept any private key for authentication

Is it possible to configure OpenSSH (or any other standard sshd) to accept any key offered by a connecting client? EG ssh -i ~/arbitraryKey hostname grants a login shell while ssh hostanme doesn't. ...
0
votes
1answer
153 views

Cannot SSH into server because authorized_keys is in a different folder

I was able to SSH into this remote server using password authentication before. I wanted to change that to make it use private/public key pairs instead. I followed the necessary steps by generating a ...
0
votes
2answers
299 views

My ssh key doesn't work, permissions look good [duplicate]

My permissions look like this: -rw-------. 1 smpadmin staff 400 May 21 2014 id_rsa.pub -rw-r--r--. 1 smpadmin staff 505 Dec 14 19:19 known_hosts drwxr-xr-x. 45 smpadmin staff 4096 Jan ...
2
votes
5answers
14k views

Unable to login with SSH-RSA key

This post is following this question : Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys . The issue as exposed there is solved (about files modes of the ....