The key-authentication tag has no usage guidance.
1
vote
0answers
11 views
SSHD Could not load host key
I'm trying to connect via passwordless key authentication ssh to my Ubuntu NAS server from my Mac. I get the following error in my auth.log
error: Could not load host key: /Users/alexkwa/.ssh/id_rsa
...
6
votes
6answers
186 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 ...
1
vote
2answers
215 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:
...
1
vote
2answers
21 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
0answers
24 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 ...
0
votes
1answer
16 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
68 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. ...
5
votes
2answers
2k views
Restrict password-less backup with SFTP
I need to perform backup of a server to my computer using Duplicity:
duplicity /etc sftp://[email protected]//home/backup
Before this can be done, I need to allow password-less access by ...
2
votes
1answer
51 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 ...
1
vote
0answers
41 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
2answers
65 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
64 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 ...
118
votes
19answers
154k views
Why am I still getting a password prompt with ssh with public key authentication?
I'm working from the URL I found here:
http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/
My ssh client is Ubuntu 64 bit 11.10 desktop and my server is Centos 6.2 64 ...
2
votes
3answers
466 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
21 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:
...
3
votes
3answers
1k 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
63 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
4answers
9k 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 ...
3
votes
3answers
3k views
parallel-ssh with Passphrase Protected SSH Key
I'd like to use my passphrase protected SSH key when performing tasks with parallel-ssh (and related tools). However, I can't get this to work.
All the documentation, regarding parallel-ssh, show ...
0
votes
1answer
215 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
70 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
61 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 ...
14
votes
5answers
18k 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:
...
0
votes
0answers
34 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
5answers
472 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 ...
2
votes
0answers
184 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 ...
0
votes
1answer
60 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 ...
2
votes
2answers
852 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.
...
11
votes
2answers
284 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 ...
3
votes
0answers
99 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
58 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 ...
3
votes
1answer
325 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
89 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 ...
0
votes
3answers
184 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 ...
26
votes
3answers
91k views
ssh_exchange_identification: Connection closed by remote host (not using hosts.deny)
I'm not using hosts.allow or hosts.deny, further more SSH works from my windows-machine (same laptop, different hard drive) but not my Linux machine.
ssh -vvv root@host -p port gives:
OpenSSH_6.6, ...
0
votes
1answer
1k views
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 ...
0
votes
1answer
424 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: ...
0
votes
1answer
300 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
1answer
52 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
63 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 ...
1
vote
1answer
72 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
2answers
56 views
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 ...
4
votes
2answers
119 views
SSH password requested when in Tmux
When I connect to my remote machine I do authenticate using a rsa key (I think is rsa, don't remember).
If I do ssh from a regular shell I get logged on the machine without a password. However if I ...
4
votes
3answers
248 views
Automatic login via ssh (no GUI environment installed / no ssh-agent available)?
I have three systems, and I want to have them doing backups between them periodically. The two of them, have Debian Wheezy installed and the other one has Ubuntu 12.04 installed. Only the Ubuntu has a ...
1
vote
1answer
33 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 ...
2
votes
2answers
183 views
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 ...
2
votes
1answer
458 views
OS X SSH keeps asking for password [closed]
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, ...
1
vote
0answers
352 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 ...
3
votes
1answer
762 views
Public-Key Authentication w/ Jailed SFTP User
I'm trying to set up a jailed SFTP user account on my own local machine to test an application with libcurl. I used this guide to help me figure out how to set up a jailed SFTP user: ...
0
votes
2answers
399 views
Permission denied when run script via ssh
I wrote script which download via scp and install some packages. SSH keys are added to host and when I run
[root@HostB ~]# ./myscript
everything is ok and packages are downloaded via scp without ...