The tag has no usage guidance.

learn more… | top users | synonyms (1)

1
vote
1answer
34 views

Which host key algorithm is best to use for SSH? [on hold]

When you first connect to an SSH server that is not contained inside your known_hosts file your SSH client displays the fingerprint of the public key that the server gave. I found from this question ...
0
votes
1answer
22 views

How does OpenSSH determine the choose the host key algorithm?

After updating raspbian and all of its libraries I noticed something different about SSH. When I delete the 'known hosts' file in my home and ssh into my box it provides me with the hosts public key ...
0
votes
4answers
1k 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 ...
1
vote
1answer
1k 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 ...
43
votes
4answers
40k views

How to avoid being asked passphrase each time I push to Bitbucket

I set up my ssh stuff with the help of this guide, and it used to work well (I could run hg push without being asked for a passphrase). What could have happened between then and now, considering that ...
4
votes
6answers
20k 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 ...
-1
votes
1answer
71 views

How are public and private keys used in ssh?

Assume I have set up public/private key authentication in ssh. Is it correct that the ssh server possesses the public key but not the private key, while the ssh client possesses both the public and ...
1
vote
2answers
704 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 ....
1
vote
1answer
64 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 ...
3
votes
0answers
47 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 ...
2
votes
3answers
73 views

Problem with sudoing ssh - `sudo ssh …` fails

I am trying to use git salt ssh access (which runs with root). The error is always: Permission denied (publickey). I managed to reproduce the problem, simulating what salt may be doing, by ...
3
votes
1answer
66 views

SSH login issue with two different user names

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 ...
14
votes
3answers
21k 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): /...
3
votes
4answers
15k 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 ...
3
votes
2answers
216 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
44 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 ...
8
votes
6answers
19k 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 ...
183
votes
21answers
258k 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
93 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 ...
36
votes
5answers
133k 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
80 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
54 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
48 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
9k 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 ...
2
votes
1answer
128 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
44 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
175 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
127 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 present,...
4
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
68 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
30 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
136 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
70 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
51 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; ...
119
votes
6answers
67k 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
205 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
1answer
38 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
62 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
95 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
38 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 ...
25
votes
5answers
32k 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
58 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
359 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
753 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 /usr/...
0
votes
2answers
113 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
36 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
72 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 ...