The tag has no usage guidance.

learn more… | top users | synonyms (1)

3
votes
6answers
17k views

SSH: “Server refused our key” with no reason

I was trying to set up a simple backup script to run automatically that would copy a file from a Windows machine to a Linux one through SSH. As a lot of simple online tutorials suggest I used pscp ...
13
votes
3answers
20k views

SCP from one server to another without password prompt

What is the best way of doing scp from one box to the other without prompting for password? There are two servers: Server A (10.152.2.10): /home/oracle/export/files.txt Server B (10.152.2.11): ...
2
votes
1answer
32 views

SSH login issue with two different user name

I'm facing a login issue with SSH (dsa), here the scenario: On my host I've created ssh keys for the user dx and set permission of .ssh and id_dsa and id_dsa.pub I sent the public key to the remote ...
2
votes
4answers
10k 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
878 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 ...
0
votes
4answers
957 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 ...
3
votes
2answers
133 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 ...
1
vote
2answers
40 views

Can I detect if ssh key authentication will succeed before attempting?

I have a script that needs to run without any user interaction and that needs to set up some SSH port forwarding. It shouldn't prompt for a password - if SSH needs a password to proceed, I'd like my ...
7
votes
6answers
16k 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 ...
174
votes
21answers
234k 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 ...
3
votes
1answer
62 views

Why would ssh think there's a passphrase?

When connecting to the server with ssh I'm prompted for a passphrase, although the creator of the key hasn't set one and the file is a plain text private key. $ cat ~/.ssh/private.pem -----BEGIN RSA ...
34
votes
5answers
126k 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, ...
3
votes
2answers
79 views

Is there a one liner which can list public key fingerprints with authorized_keys as input?

I'd like to audit the authorized_keys file on a number of servers and match them with known AWS key fingerprints. Is there a one-liner which incorporates ssh-keygen -lf which will output the ...
0
votes
0answers
32 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
39 views

Rental server refuses SSH connection; won't allow authorise me to download my SSH key

I am attempting to connect to my rental server via ssh to install MemSQL for a project. I have written the following in ~/.ssh/config: HOST eHosts HostName e9.ehosts.com Port 2222 User orderof3 But ...
20
votes
2answers
8k views

Is there an easy way to update information in known_hosts when you know that a hosts key has changed?

If a host's operating system has been re-installed and had its public key regenerated sshing to it will of course fail because the new key doesn't match the old one. Is there an easier way to tell ...
1
vote
1answer
55 views

SSH publickey permission denied (Google Cloud Platform)

We run a small handful of Debian servers on Google Cloud Platform. New servers we setup, we're able to add SSH keys at the point of creation and access the machines via SSH without a problem. Older ...
2
votes
1answer
38 views

Send my private key through the ssh session only

My scenario: localhost: contains my private key serverA: contains my public key serverB: contains my public key I login to serverA and perform some operations, which involve copying some files from ...
0
votes
0answers
100 views

SFTP connection using public key (without password) not working

I need to provide sftp access to a client to my ftp server and this is working fine. For them to access our server without using password - we have followed the below steps on our server. Created ...
3
votes
2answers
1k views

ssh prompts for password despite .ssh/authorized_keys

I issued ssh username@db2workgoup -n "echocat ~/.ssh/id_dsa.pub>> ~/.ssh/authorized_keys" and then checked that the key was stored in authorized_keys file. But ssh is still asking for the ...
1
vote
1answer
67 views

openssh: Have ssh add keys to agent as needed

When I ssh into a server and my key isn't loaded in the agent, I have to abort, then run ssh-add to get my key into the agent. I'd like the ssh command to add the key automatically if it isn't ...
3
votes
4answers
1k views

Must I store a private key in a file?

I have a db-driven application that needs to communicate with another server via ssh. The web app can generate a keypair and give the user the pubkey, or it can accept the unencrypted private key in a ...
-1
votes
1answer
36 views

Upgrade GNU parted 3.1 to 3.2

I'm trying to upgrade GNU parted 3.1 to 3.2 and when I try to verify the key it says : # gpg --verify parted-3.2.tar.xz.sig gpg: Signature made Mon 28 Jul 2014 11:20:50 PM EDT using RSA key ID ...
0
votes
1answer
29 views

Issue with copying the public Key

I'm trying to copy the public key to my remote host but I keep getting this message, "Permission denied (public key). Password authentication is set to YES in my /etc/ssh/sshd_config file, I have ...
3
votes
1answer
81 views

Upgraded cygwin on PC and now can't SSH into it from Linux

I got everything setup perfect and was able to ssh from a Linux box to my PC's cygsrv (Cygwin SSH Server) w/o any problems w/o using a password (BTW, I'm using a DSA key). All .ssh permissions were ...
2
votes
1answer
44 views

How to convert open-ssl created private key to openssh private key?

I have created an open-ssl private key which I would like to use to connect to my server through ssh. The openssl key was generated during certificate creation and I have to use this key on putty. The ...
1
vote
2answers
37 views

Do I need to re-generate SSH RSA public keys or re-import them again in case my LDAP password changes/expires?

I've took a liking to authenticating with RSA keys a few days ago and imported the keys to the hosts I have been connecting to. However, my company's policy expires passwords every once in a while; ...
105
votes
6answers
58k views

How to force ssh client to use only password auth?

If I use pubkey auth from e.g.: an Ubuntu 11.04 how can I set the ssh client to use only password auth to a server? (just needed because of testing passwords on a server, where I default log in with ...
8
votes
1answer
194 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 ...
5
votes
2answers
2k views

Is it possible to use ssh-copy-id once password based logins are disabled?

Is it possible to use ssh-copy-id once password based logins are disabled? Otherwise, is there an utility for adding an authorized public key to a user or should I edit the ~/.ssh/authorized_keys file ...
0
votes
0answers
48 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
1answer
34 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
0answers
43 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 ...
0
votes
2answers
74 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
33 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 ...
23
votes
5answers
29k 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
51 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 ...
-1
votes
2answers
272 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 - ...
3
votes
2answers
498 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 ...
0
votes
2answers
368 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 ...
0
votes
2answers
87 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 ...
1
vote
1answer
32 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
1answer
62 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
46 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
1answer
113 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
183 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
191 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
357 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
73 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
479 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 ...