an authorization mechanism for SSH involving public-key cryptography.

learn more… | top users | synonyms

0
votes
1answer
26 views

How do i resolve permission denied (public key) on ec2 aws [duplicate]

I have tried everything and i have been on this for two days, no progress. i can access the same server (hadoopmaster) but when i try to copy the key or ssh into the slave (hadoopslave-1) i get the ...
1
vote
2answers
30 views

authorized_keys and with_items in Ansible

I'm trying to create new users and populate their ~/.ssh/authorized_keys file using Ansible. Here's my task: - name: Create user account user: name="{{ item.username }}-ns" comment="{{ item....
0
votes
1answer
36 views

Extract a .pem file from an existing .ppk or from the server?

So I use windows and so when I first setup my server I had a pem key that I converted into a PPK using puttyGen. Now I no longer have the pem and need to access the server from a mac which uses .pem ...
0
votes
1answer
19 views

ssh-copy-id specifying which key and without password

I have a public key in a server(host) that I want to transfer to another server(target). The host server has a bunch of keys in .ssh/ folder, i want to copy just one of them to the target server (it'...
1
vote
1answer
65 views

Ansible deploy multiple authorized_keys on multiple hosts

We need deploy keys on the servers, but trick is that the keys are many and do not all of them must have deploy on all servers. Now we do it follows: in vars roles/authorized_keys/vars/main.yml ...
0
votes
1answer
29 views

How to avoid asking password when logging via SSH Key?

I have this scenario: I login to dns1 with key and same with dns2. Suddenly for each of the keys I used it started to ask me server password, this was never happening in past, and I did no changes on ...
0
votes
0answers
34 views

Still have access to LAMP server, even after deleting local ssh keys

So I'm trying to break my ssh key authentication between me and my LAMP stack although I can't. In other words, it just gives me access and I don't know how! Here's what I've done... Created a key ...
0
votes
1answer
31 views

SSH jump box with private keys on jump box

I basically want to do what is explained in this serverfault question, so I want a group of people ("admins") be able to login in to many hidden servers with ssh using a jumpbox which stores the ...
0
votes
0answers
18 views

Can still access LAMP server, even after deleting local ssh keys [duplicate]

Server newbie here and on a mac for reference. So I'm trying to break my ssh key authentication between me and my LAMP stack although I can't. In other words, it just gives me access and I don't know ...
0
votes
0answers
18 views

How to authenticate without password on Chef deployed nodes

I started to use Chef to deal with DevOps automation and now I have a situation were there are two database servers(primary and secondary) being deployed using knife server create , and during the ...
1
vote
2answers
61 views

Cannot ssh with shared keys on CentOS 7 server refused our key

I cannot ssh to a CentOS 7 server using pre-shared keys, I get a "server refused our key" message. Below is an ssh attempt using -vv OpenSSH_7.2p2, OpenSSL 1.0.2h-fips 3 May 2016 debug1: Reading ...
0
votes
0answers
14 views

Multi user passwordless directory specific ssh login

I am running Ubuntu 14.04 LTS. I want to allow multi user passwordless ssh login. But I want to give directory specific ssh access. For example: My home directory(server home) has two folders user1 ...
19
votes
2answers
2k views

Receiving a private key from server admin: ok or not?

I am to get access to a remote SFTP server. The admin has created a user for me, and generated a public/private key pair for me. Then he securely sent me the private key file, which I use for ...
0
votes
0answers
28 views

GCE project-wide SSH keys not propogating

I have noticed in my GCE cluster that when I add an SSH key to the project metadata that it is then automatically added to /home/[user]/.ssh/authorized_keys. This is the behaviour I expect (and desire ...
0
votes
0answers
20 views

Synology NAS ssh key auth not working

I follow the directions here on how to setup ssh key auth on my synology NAS. These are typical linux configurations so nothing special; I include the link for reference. This gets me ssh root@ ...
0
votes
3answers
56 views

ssh-copy-id without password to user `postgres`

I have N hosts where can I do passwordless login via ssh to user root. For those machines I like to add a ssh-pub-key to authorized_keys of user postgres. Goal: I want passwordless login to user ...
1
vote
1answer
36 views

generating ssh keys with openssl or ssh-keygen

I want to generate an ssh key-pair but i came across with two different ways of doing that.One is using openssl and the other is ssh-keygen. Is there any difference as to the outcome/the final key ...
0
votes
1answer
103 views

ssh: Could not resolve hostname add: Name or service not known

I created non-sudo user and I can't add ssh key while logined with it: % ssh -vvv add ~/.ssh/mykey OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config ...
0
votes
1answer
73 views

Access with ssh only password without publickey with virtualbox

I tried to setup the ssh-server without publickey , with openssh-server 6.7p1-5 changed sshd_config RSAAuthentication no PubkeyAuthentication no PasswordAuthentication yes Restart ssh service ...
0
votes
0answers
17 views

Connect to esXi host from CentOS client with vCLI with RSA Pub/Priv Key

So I successfully setup vCLI on CentOS 7, and I am trying to connect via SSH, but since I set up RSA authentication without Password authentication (on the esxi host), I was wondering if anybody knows ...
2
votes
1answer
200 views

ssh “incorrect signature” while connecting to server

I have a server that I usually connect to from multiple laptops, some FC22, FC23, or ubuntu. I installed a brand new laptop FC23, added the relevant keys in authorized_keys, etc: [mathieu@xps13 code]$...
1
vote
0answers
59 views

OpenSSH Windows Error

I want to connect with putty from one machine_1 to another Windows machine machine_2. So I install a OpenSSH Server on machine_2. I generate 2 a key pair with puttygen. I paste the public key in C:\...
1
vote
1answer
62 views

After restoring GitLab backup, new SSH public keys randomly supersede other users' existing keys

This occurred with a new (not upgraded) installation of GitLab 8.6.4. I installed GitLab and my team evaluated it. Of course I and others entered our SSH public keys. As part of our evaluation I ...
1
vote
1answer
35 views

Google Cloud Platform: ssh from VM_1 in project_A to VM_2 in project_B

I am trying to connect virtual machine VM_1 in project_A to virtual machine VM_2 in project_B. Bot are on Debian Linux. Steps I did: On VM_1 Project_A Generated private and public keys ssh-keygen -...
1
vote
1answer
234 views

OpenSSH adds <IPv6>%2 to known_hosts

When I connect to a CentOS 7 host with IPv6 my ssh client always adds <IPv6 host addr>%2 to known_hosts even though the host key for this host (with the host's IPv6 address) is already present ...
1
vote
1answer
27 views

ssh-add -l multiple entry for the same private key

192-168-1-103:~ josh$ ssh-add -l 4096 SHA256:4fFdwJ71VIH8rucL9y/3U7jxjctaFcAKmdQZPEqR0Y4 /Users/josh/.ssh/id_rsa (RSA) 4096 SHA256:41kNx5H5yDf1mv6ZNS5W5nSI77WU5qhajLYHvUe6/1A /Users/josh/...
-2
votes
1answer
38 views

Verify ECDSA Key Fingerprint of Azure Linux VM [closed]

I'm starting to play with bash on Windows (Insider Preview build 14316) and have created a Linux VM in Azure. When I ssh into it, I'm presented with "The authenticity of host '##.##.##.##' can't be ...
0
votes
0answers
49 views

Apt-Dater: sorry, you must have a tty to run sudo

Unfortunately I can not connect to a host using apt-dater. The error is: Pseudo-terminal will not be allocated because stdin is not a terminal. ADPROTO: 0.7 LSBREL: CentOS|7.2.1511|Core VIRT: ...
1
vote
1answer
58 views

Why won't my SSH keys forward properly?

I'm trying to ssh from my machine to another machine and from there to a third machine. When I do it manually, it works like this: localhost$ scp ~/.ssh/id_rsa myuser@myhost.something.something.com:. ...
2
votes
1answer
55 views

AWS EC2 Server Refused Connection - Unmounted replaced authorized_keys - still cannot connect

So we were working on configurations for a soon to be production server. After making some configuration changes, we rebooted the machine and we got the dreaded "server refused connection" message. I ...
1
vote
0answers
102 views

Warning: Remote host identification has changed (SSH)

Most likely someone did a server update last night, because when I try to do a rsync (from win 7) I get the message (short version): WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! It is possible ...
1
vote
1answer
43 views

Attempting to setup ssh authentication on linux - Grants access all the time

I am currently attempting to secure one of my linux box. I would like the device to grant access to only those systems that have the ssh private keys. In order to accomplish that here is what I did (...
0
votes
2answers
62 views

useradd --disabled-password can't ssh using authorized keys

I might've done this wrong. I created a user with : sudo adduser --disabled-password userX And I've added a public key to /home/userX/.ssh/authorized_keys. But when I ssh into the account I get the ...
7
votes
3answers
253 views

SFTP with chroot depending on public key of connecting user

I want to build a server (running Debian or FreeBSD) that receives backups from different clients via sshfs. Each client should be able to read and write its own backup data, but not the data of any ...
0
votes
1answer
132 views

User without home access remote machine ssh

I want a production server to push backup files to a backup machine. Backups are being done via www-data cron script (as they can be edited by website cms), and once it has finished the idea is to ...
2
votes
0answers
387 views

Mac OSX - SSHD partially broken after El Capitan Upgrade

I recently upgraded my firm's Mac Mini device to El Capitan from Yosemite, and encountered several issues during the upgrade. I've gotten most of them resolved but one that's still failing is the SSH ...
1
vote
1answer
35 views

passwordless ssh in VM - weird authorized keys file

I am trying to setup passwordless ssh to my localhost (itself). I have host machine PM1 and then I lauch a VM(vm1) using qemu-kvm and logged into VM. Then, I am trying to setup passworless ssh within ...
1
vote
1answer
115 views

Can't get SSH ProxyCommand to work (ssh_exchange_identification: Connection closed by remote host)

I'm unsuccessfully trying to use SSH ProxyCommand to connect to a server via a jump box. My config is below, I'm running this command: ssh 10.0.2.54 -F ssh.config Host x.x.x.x User ...
1
vote
1answer
323 views

Cannot clone private repositroy from the docker container

The problem I'm trying to clone private repo from gitlab (self-hosted) during the gitlab build. I'm using ssh private key without passphrase, but got an error key_load_private_type: incorrect ...
-2
votes
1answer
45 views

SSH — allow login with public key only / disable login with password [duplicate]

I am quite new to server administration and I am not doing it very often. Today I wanted to secure my server, especially the ssh server. Is it possible to configure ssh so that only users can login if ...
1
vote
2answers
38 views

Is there any way to change the key pair on a windows ami in aws

The situation, I've inherited a windows infrastructure in AWS. The ami's were created with someone else's keypair who has now left the business. I have a requirement to remove those keys. The way I ...
2
votes
0answers
110 views

EC2 SSH Login Temporarily Hangs on “Entering Interactive Session”

I've been researching this for hours now, can't figure out why this is happening. Originally marked it as internet but checked my speeds (37 down, 10 up). I went from California to Oregon, and since ...
43
votes
4answers
2k views

What significance does the user/host at the end of an SSH public key file hold?

I can’t figure out why does an SSH public key file generated by ssh-keygen have a user and host at the end of it. Example: id_rsa.pub ssh-rsa ... rest of file ... /CA9gyE8HRhNMG6ZDwyhPBbDfX root@...
0
votes
2answers
49 views

How to allow both/either public key and/or password authentication

I am trying to get Komodo to connect to a remote server. However, as I understand it, Komodo doesn't support public ssh keys. I edited the /etc/ssh/sshd_config file and set both ...
0
votes
1answer
304 views

Connection timed out when trying to SCP from one EC2 instance to another

I'm trying to SCP from one ec2 instance to another (via SSH client). Both server use the same keys. My initial investigation into this led me to believe this would all be possible by using ...
0
votes
2answers
106 views

getting permission denied when using ssh

I am trying to setup ssh access using keys - I have added my public key to the .ssh directory on the server. I restarted the ssh service on the server as well. When I logon from my local computer to ...
0
votes
0answers
146 views

SSH Connection To Joyent Instance Using PuTTY - server refused our key error

I have a Joyent account with a Linux Unbuntu 14.04 Instance created on it. I'm trying to connect to the instance using SSH. I'm on a Windows machine using FreeSSHd for my SSH server, PuTTY Key ...
-1
votes
1answer
36 views

ssh key unlock password some hosts some not

I'm having some issues which i can't figure out, i guess it's a noob question but its giving me a hard time. I have multiple servers, you can only connect via SSH with a key. They all have the same ...
1
vote
1answer
28 views

Are default parameters to 'openssl genpkey' sufficiently secure? [closed]

I know very little about openssl so I'm wondering whether the default parameters to openssl genpkey are sufficiently secure. If I run openssl genpkey -algorithm rsa I get a private key. But is it fine ...
-3
votes
1answer
84 views

Cannot SSH in as root using Key

I have searched through serverFault and cannot rectify my problem. An explanation: Ubuntu 14.04 - I am able to SSH into the server using user amenczykowski with a key. I am unable to SSH into the ...