The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
0answers
26 views

Can a Linux server that authenticates against an Active Directory accept public/private keys for passwordless login?

I have a Linux server that authenticates users against an Active Directory. Now interactive logins require username and password and automatic login requires a keytab (Kerberos) for passwordless ...
0
votes
0answers
25 views

Can't ssh without password to ubuntu machines on a shared filesystem, while it is successful on RHEL machines [closed]

I am running on a cluster, where my home directory is shared to all machines. Some of the machines are RHEL and the others are Ubuntu. When I login without password from RHEL->RHEL or UBUNTU->RHEL it ...
0
votes
0answers
18 views

why is sTunnel failing to launch?

im a bit stuck and need help understanding what im being told as there is nothing in the log file, i get the following error when i try and run stunnel (servermode): sudo /etc/init.d/stunnel4 start ...
3
votes
1answer
27 views

key_read: type mismatch: encoding error

Seeing very strange error on newly install CentOS7, I didn't create or touch any ssh-key. ~/.ssh/ directory is also empty. [john@server1 ~]$ ssh server1 key_read: type mismatch: encoding error ...
0
votes
2answers
58 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 ...
3
votes
1answer
26 views

What are the drawbacks of using policy_any in openssl.cnf?

As given in this document, we may use policy_any to ignore most of the fields of subject in certificate request. There must be some drawbacks of ignoring such fields, would it may lead to some ...
0
votes
0answers
34 views

How do i connect to a remote server using the ssh key of the remote server from my local

I have connected to a remote server from my local server by using the public key of my local system on the remote server. However, I have a situation where I will not know the remote server until the ...
0
votes
2answers
174 views

What are the keys accepted by openSSH?

Question is simple: What are the (private) key types and (their specification - format, syntax) accepted by current openSSH? The vague answer "the keys generated by ssh-keygen" is not accepted - ...
1
vote
1answer
21 views

Use a specific SSH key-pair when connecting via ssh, and temporarily ignore all other keys?

How can I get ssh to temporarily ignore any SSH key-pairs that are present in $HOME/.ssh along with keys that might be loaded in ssh-agent? NOTE: I don't want to make any changes to my $HOME/.ssh ...
0
votes
2answers
58 views

Check what ssh keys are accepted on server

I have a directory full of ssh private keys, and I'd like to check what keys are accepted on what server without logging in. How can I do that without adding the ssh-keys to my authentication client ...
0
votes
1answer
27 views

How to find serve's public key string (NOT KEY FINGERPRINT!!!) [duplicate]

I am looking for the server's RSA public key string. I do not have permission to go to /etc/ssh and further so I can't read the actual public key. I don not have access to any packet sniffing tools ...
0
votes
1answer
40 views

ssh login a second server without password?

I have already set up public/private key pairs for ssh login on a server A without password. The problem is that I also want to log on another server B without password. I searched a little online. It ...
4
votes
1answer
29 views

How do I stop ssh from offering other keys?

I have some server dev.example.com and in its authorized_keys file I have my ~/.ssh/id_rsa.pub key. I also have an ~/.ssh/my_test.pub key. My ~/.ssh/config specifies that for dev.example.com it ...
3
votes
2answers
138 views

Why does ssh-copy-id with a non-`id_rsa` file on Mac OSX tell me that my key already exists?

I am trying to use a non-standard key name to copy to the remote server but it's telling me that the key already has been copied: $ ssh-copy-id -i /Users/wwerner/.ssh/my_other_key me@example ...
3
votes
1answer
65 views

ssh public key auth: first login still asks for a password

I have set up public key authentication with ssh, but what happens, is that when I first log in, it still asks for a password, any subsequent login (while keeping the first login alive), does not ask ...
0
votes
1answer
89 views

Public key not working… but it matches the host key

I want to connect with my raspberry pi from my mac, I can do it from a mac with 10.10, I copied the public keys but I get this trying to login from another mac: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec ...
1
vote
1answer
116 views

Dogtag CA after installation

After Dogtag 10 installation(step by step by https://www.youtube.com/watch?v=C3eElJAz7lU) when I open Admin (https://localhost.localdomain:8443/ca/agent/ca/) I get following error Problem ...
2
votes
2answers
158 views

Can't connect to another user than root through SSH

I'm trying to connect to a server on my local network using SSH and would like to be able to login as storm but not as root (for obvious security purposes). I copied my .pub key to the ...
0
votes
0answers
43 views

ssh with keys - want to use pam_tally2 - but cannot get it to work

I have configured pam_tally2 before on Centos 6 for users that use passwords for authentication. However, in this case I am only using keys to login (no passwords). It seems that pam_tally2 is not ...
6
votes
2answers
227 views

Send the password through stdin in `ssh-copy-id`

I need to automate some identity deployments, ideally using ssh-copy-id. I'm trying to provide the password through stdin, which is possible on ssh by using the -S flag. I'm aware that I can send ...
0
votes
0answers
49 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 ...
6
votes
6answers
335 views

Allow regular users to SSH using a private key they cannot read

Let's say I have a set of machines (called here the customers' machines) that only a small list of people (called the support staff) is allowed to SSH into, using only one account by machine (the ...
2
votes
3answers
3k views

Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

Ok, so I have tried this quite a few times and I'm sure this is very trivial but: I am trying to SSH via command line on Ubuntu into my VM (Centos6) with an RSA key-pair I created using key-gen. I ...
1
vote
2answers
121 views

Add ssh pubkey to authorized_keys on local host (skipping existent)

I needed that to add jenkins pubkey to my host's authorized_keys when starting a docker container with jenkins. Looked for solutions, but could not find ready at internet. May seem obvious, but not ...
0
votes
1answer
34 views

opensshd / openssh - allow EITHER keypair or password

I would like to configure my sshd to allow users to authenticate with a keypair, then fallback to password authentication. But I'm struggling to achieve that from the information in the man pages / ...
2
votes
2answers
562 views

ssh Public key problem

I have several clients connecting to an SSH server all using public key authentication. I am trying to connect from an Ubuntu 14.04 VM to the same server. Cant get public key authentication working. ...
2
votes
1answer
719 views

How to convert public key from PEM to DER format?

I'd like to convert an existing public key (generated using ssh-keygen) from PEM-format to DER-format I tried: openssl rsa -in ~/.ssh/id_rsa.pub -inform PEM -pubin -outform DER -out ...
0
votes
2answers
201 views

scp not working without password

I created keys so I can transfer files and run commands without having to enter in a password. I used this guide to do it: ...
0
votes
0answers
104 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 ...
2
votes
3answers
584 views

Why can't I login on the remote computer without a password after using SSH-KEYGEN command?

I have two computers. From the first I created the account admin1 with password admin1. Then I logged in as a root user and used the ssh-keygen -t rsa command. I did not give a password and hit Enter ...
0
votes
0answers
27 views

Where to put the ASCII WPA2 Wifi Key in MacOS X?

I tried to make some research about wifi security in our company: So i tried to het WPA2 Wifi key using wifite tool in Kali linux distribution. After the few attempts i get WPS PIN and WPA2 KEY: ...
0
votes
2answers
126 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 ...
4
votes
3answers
5k views

Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys [duplicate]

EDIT The issue as exposed here is solved (about files modes of the .ssh folder. But an other issue persists so I create a new question : > Unable to login with SSH-RSA key I can no longer ...
0
votes
1answer
572 views

ssh secure shell: “connection closed by remote host”, not acquiring the key

I am very new to using this ssh secure shell to access a remote workstation. This is the third time I have received the message: Server responded "Connection closed by remote host". The ...
2
votes
1answer
152 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 ...
1
vote
1answer
88 views

Passwordless ssh login on Mac OS without -i option

I have a ssh key without a password to login to a remote system. Let's assume the remote server is called server-name and has the same user as the one I'm currently logged in. In the console if I do ...
0
votes
0answers
50 views

SSH: public key authentication to git repo works only on local sessions

I can access my repository on bitbucket from my machine without any issues if I am in front of it, but when I am logged in through SSH to the same machine, it doesnt. Diff of SSH output(local session ...
2
votes
0answers
337 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
5answers
496 views

Is it more convenient to login to SSH using a password because SSH Keys need to be stored on each computer [closed]

I do not mean this to be an opinionated question, I am just trying to see if I am missing something here: It seems like using a username and password to use the SSH because the username and password ...
0
votes
1answer
86 views

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 ...
5
votes
0answers
153 views

Is there a technical reason why ssh-agent lacks a sudo-like inactivity/idle timeout feature?

There are some brief discussions about the existing ssh-agent -t feature at [1], and there was a post as far back as 2001 on debian-devel [2] wishing for an inactivity timeout feature. There's a ...
-1
votes
1answer
89 views

How to check ssh secret and public key validability in local command line [duplicate]

I have a secret key id_rsa and a public key authorized_keys that should be pair. But I have a problem to ssh by using these keys. I want to check the validability of these key pair by a command in ...
5
votes
1answer
503 views

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 ...
1
vote
0answers
149 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 ...
11
votes
2answers
447 views

A consistent and safe approach to passwordless accounts with SSH

I must admit that I like servers without passwords in some cases. A typical server is vulnerable to anyone who has physical access to it. So in some cases it is practical to lock it physically and ...
0
votes
3answers
368 views

creating and sending a self-signed public key using GnuPG in CentOS 7

I know that I can create a GPG keypair from the CentOS 7 terminal by typing gpg --gen-key and following the resulting steps, but how can I make sure that the resulting public key is self-signed? And ...
0
votes
1answer
771 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 ...
2
votes
2answers
1k views

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

automatic ssh connection with use the passphrase key

I use the key pair with passphrase for the host connection on ssh. Is it possible to specify this passpharase in ssh_config on the client?
1
vote
1answer
100 views

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 ...