The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
399 views

Creating SSH key for remote host

I am beginning work with a remote host. They require a "SSH KEY" from my server. How can I create a SSH Key that they can use to allow connections from my server? I would like to assign the key to a ...
33
votes
5answers
3k views

Smoothest workflow to handle SSH host verification errors?

This is a simple issue that we all face and probably resolve manually without giving much thought. As servers change, are re-provisioned, or IP addresses reallocated, we receive the SSH host ...
0
votes
2answers
128 views

Disabling password login for certain users for SSH

I added this to the bottom of the sshd_config file Match User user PasswordAuthentication no Then I restarted SSH, and when I went to go SSH into my server I got the error Permission denied ...
1
vote
2answers
176 views

Ubuntu on EC2 - can't access after sudo su command

I'm relatively new to Linux, and whilst installing a number of different applications on my Ubuntu server instance, somebody helpfully suggested I use 'sudo su' to speed things up a little. All good. ...
8
votes
2answers
2k views

How to get all fingerprints for .ssh/authorized_keys(2) file

Is there a simple way to get a list of all fingerprints entered in the .ssh/authorized_keys || .ssh/authorized_keys2 file? ssh-keygen -l -f .ssh/authorized_keys will only return fingerprint of ...
6
votes
1answer
1k views

Only allow password authentication to SSH server from internal network

I have an OpenSSH 5.9p1 server running on Ubuntu Precise 12.04 which accepts connections from both the internal network and the Internet. I'd like to require public key authentication for connections ...
4
votes
3answers
347 views

SSH still asks for password even after adding key to authorized_keys

Here are the steps I did on my local computer: ssh-keygen -t rsa cat ~/.ssh/id_rsa | ssh root@remotehost.com -p 1234 "cat > ~/.ssh/authorized_keys" When I do a ssh root@remotehost.com -p 1234 it ...
0
votes
1answer
1k views

ssh rsa keys expires after 5 years

I'm using an old login with ssh-rsa public/private key and all was good. I noticed that a couple of days ago the authorizazion was avoid with message "server refused our keys". After diggin' I figured ...
4
votes
2answers
638 views

Choose identity from ssh-agent by file name

Problem: I have some 20-30 ssh-agent identities. Most servers refuse authentication with Too many failed authentications, as SSH usually won't let me try 20 different keys to log in. At the moment, I ...
5
votes
1answer
1k views

CentOS is ignoring my public key

I am trying to connect to my own CentOS server using SSH; I am able to connect fine with a password; I am trying to connect with my public key, but the server does not attempt public key ...
0
votes
2answers
1k views

Tie SSH key with MAC address

I have a ubuntu server which I scp files to often. It is setup for password-less authentication using a key I have on the server. Is it possible to tie a mac address to the key so that only my client ...
2
votes
4answers
12k views

Key-Based SSH Permission denied (publickey) Ubuntu 12-04

I have configured sshd to accept key-based ssh logins with LogLevel on DEBUG, and uploaded my public key to ~/.ssh.authorized_keys, where permissions are set as: 700 ~/.ssh 600 ~/.ssh/authorized_keys ...
6
votes
1answer
191 views

identifying ssh trusts between multiple servers on a network

The problem: We have many dev/qa/prod RH/Solaris servers with many accounts having ssh trust between them, including between servers in different environments (prod->prod, but also qa->prod). I know ...
1
vote
1answer
501 views

Cannot log in via SSH after uploading SSH key

I just uploaded an SSH key to my server and now I can't login anymore... SSH is running on port 3333. puTTy: pageant failed to answer challenge Terminal give me this when trying: ssh -vvv ...
1
vote
2answers
182 views

Not able to do ssh(without asking passowrd) to remote System using Authentication Keys

Hello Friends. I am using Rhel 5.4 on System1 and centos 5.4 on System2. I am able to do SSH from A1 user of System1 to A2 User of System2 by simple method.Now i want that i generates ...
2
votes
5answers
9k views

SSH Keys Authentication keeps asking for password

Im trying to set access from ServerA(SunOS) to ServerB(Some custom Linux with Keyboard Interactive login) with SSH Keys. As a proof of concept I was able to do it between 2 virtual machines. Now in my ...
2
votes
3answers
2k views

Wordpress can't find ssh public and private key pair

My server configuration is as follows: CentOS 5.8 (final) running Nginx. I am using the SSH2 feature of Wordpress's plugin installer. I have installed lib2ssh and it is working (Wordpress is ...
-2
votes
3answers
397 views

Unable to connect using SSH keys

I am trying to connect to my linux server using the following: ssh-keygen -t rsa I then do: cat ~/.ssh/id_rsa.pub | ssh myusername@myserver_ip 'cat >> .ssh/authorized_keys' I then go to my ...
5
votes
1answer
1k views

Manage ssh_known_hosts with puppet

I'm new to Puppet (open source version) and have a relatively straightforward question. When I bring up a new host, I'd like the puppetmaster to add the new host's public rsa key to ...
1
vote
3answers
229 views

How to disable ssh keys and log-in using password

I'm having a tricky situation. First I set-up a ssh access through keys and I forgot password for "keys", and then I couldn't connect. I tried to login using another computer, and I thought I would ...
3
votes
1answer
4k views

one ssh key file for multiple machines, instead of pair to single machine?

I am currently implementing key pair login to my server as following: generate key pair from my local laptop: me@macbook:~ $ ssh-keygen -t rsa transfer pub key from laptop to server: ...
4
votes
2answers
204 views

show my public ssh keys, a good idea?

If I have many public ssh keys. Is a good idea show all of my public keys in web page? maybe a gist or similar . EDIT my problem is : when I create a new server, I have to manually copy the keys.
0
votes
3answers
197 views

can ssh from host A to B, but not from B to A

The authorized keys files on both machines are the same. So, I am unaware of any other thing to check .. On the one that works (host A->B) I get .. debug1: Authentications that can continue: ...
1
vote
1answer
476 views

Problems accessing EC2 instance with SSH key pair

Just set up a new EC2 instance, downloaded the pem file and currently cannot get into the box. I'm using the command... $ ssh -i .ssh/key.pem ubuntu@ec2-176-34-183-***.eu-west-1.compute.amazonaws.com ...
2
votes
2answers
135 views

automatic ssh key generation

In linux, If I added a file or a directory in /etc/skel, when I create a user this get the file or dir in skel. with ssh-keygen -t rsa I can create the ssh keys how I can automatically create ...
3
votes
3answers
754 views

SSH Public Key Format

I have a public key in the format: ---- BEGIN SSH2 PUBLIC KEY ---- Comment: "somename-20060227" AAAAB3NzaC1yc2EAAAABJQAAAIBmhLUTJiP[and so on]== ---- END SSH2 PUBLIC KEY ---- Usually I see keys ...
0
votes
2answers
153 views

Working out some quirks of a master SSH server

I am starting a web hosting company and there are a few details that I have yet to figure out, one of them being some sort of SSH VPN to connect to our servers running CentOS 6 with cPanel. So this ...
1
vote
5answers
511 views

SSH server won't recognize authorized_keys

I've been trying to set up Git over SSH and have followed the guides I've seen to the letter. I use ssh-keygen to create a key set, log into the remote host and append the public key to ...
3
votes
3answers
152 views

Where should an SSH keyfile be stored to be FHS compliant?

I've been reading the FHS specification on http://www.pathname.com/fhs/pub/fhs-2.3.html to figure out where a (private) SSH keyfile should be stored that will be used for a VPS administration panel I ...
3
votes
1answer
1k views

Forcing command on ssh's authorized_keys merges STDOUT and STDERR

I've been working to have a script in a centralized server to do some things and output a .tar.gz file (see redirect temporarily STDOUT to another file descriptor, but still to screen). I also have ...
1
vote
1answer
139 views

RSA keys - virtual hosts

Setting up passwordless ssh for multiple users has proved to be kind of a pain. Currently I'm the single user of this Ubuntu 10.04 LTS VPS. I was able to establish a single RSA passkey under my ...
2
votes
1answer
168 views

SSH host key changed - except it actually hasn't

I've just tried to SSH in to a server that I've been doing so without problems for a while, and received a warning that the server's host key has changed. But it hasn't! On the server, I've checked ...
0
votes
1answer
2k views

How to make ssh connection between servers using public-key authentication

I am setting up a continuos integration(CI) server and a test web server. I would like that CI server would access web server with public key authentication. In the web server I have created an user ...
1
vote
3answers
1k views

Adding ssh key results in “Connection closed by ”

im trying to add to a ssh server of mine ssh key pairs so i can log in password-less. When i add my public key to my server by creating a .svn and authorized_keys, when i remove it i can log in again ...
0
votes
1answer
669 views

Tool for managing ssh keys in a server cluster

I have couple of Debian servers and currently I am struggling around with adding manually ssh keys to the server's authorized_keys files. Do you know an application which can do this in a nice ...
1
vote
1answer
1k views

Cannot connect to my EC2 instance because of “Permission denied (publickey)”

In AWS console, I saw that my key pair was deleted. I created a new one with the same name. Then I tried to connect with ssh -v -i sohoKey.pem ec2-user@******.compute-1.amazonaws.com Here's the ...
3
votes
2answers
458 views

SSH: Configure ssh_config to use specific key file for a specific server fingerprint

I have a key based login for a server. The IP and DNS of the server can change, because it is hosted on Amazon. Is there a way to configure the ssh client config to use the specific key file for ...
0
votes
1answer
199 views

Unable to connect to a linux box from a windows box using keys

This is the dumbest thing because I have done this a load of times before and never had issue so I am sure I am just doing something daft but I can't for the life of me figure it out. I am trying to ...
0
votes
1answer
327 views

SSH known_hosts holds duplicate keys for same server

I notice my local ~/.ssh/known_hosts file has two entries for the same machine on the local LAN: somemachine,192.168.1.200 ssh-rsa KEY... somemachine.search.domain ssh-rsa KEY... It's the same ...
1
vote
1answer
301 views

SSH dns issue giving break-in error

Address ..*.* maps to ec2---*-*.compute-1.amazonaws.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! I keep getting this when I try to log-in to my remote server. I have ...
4
votes
3answers
528 views

Allow only specific keys in agent forwarding?

Is it possible to use agent forwarding excluding all keys from being forwarded, except ones specifically stated? Alternatively, are there any ways to specify the order the keys are tried per session? ...
2
votes
1answer
684 views

SSH How to ignore checking IdentityFile?

I have setup a config file located at "~/.ssh/config" which contains some IdentityFile lines to point to the key files that I use for some of my servers. e.g. IdentityFile ~/Data/Keys/KeyFile.pem ...
3
votes
1answer
113 views

ssh agent authorization in a detached screen session

I have an ssh script which use ssh key forwarding on a remote system to do thing in even more remote systems. I have to run the script in a screen session so that I can detach from it. But the ...
1
vote
1answer
237 views

Is there an `svn up` using `https+ssh://`?

I have an account on a Linux server. Long time ago, I've setup an SSH key for logging. It used to work, and it continues to work until now. Right now, after I login on the server with my SSH keys, I ...
0
votes
1answer
61 views

Gaining access to remote server over SSH from the same machine but with a different IP address

If a user can access a remote machine using SSH ok but then their static IP address changes and they find they can't access the machine, what's the problem? I don't want to destroy the user's current ...
3
votes
3answers
2k views

I created an RSA key but SSH keeps asking the password

On my Mac, I created an RSA key with ssh-keygen -t rsa and saved it as .ssh/authorized_keys on the target server (Ubuntu). I put this in server's /etc/ssh/sshd_config: PubkeyAuthentication yes ...
15
votes
1answer
4k views

What is the meaning of an equal sign = or == at the end of a SSH public key?

I just noticed that most of the ssh pubkeys in my authorized_keys end on == or = E.g. ssh-rsa ...
6
votes
1answer
2k views

Choosing the encryption algorithm used by OSX ssh-keygen

I have several users that use SmartCVS on OSX to interact with our CVS repository. We use the cvs :ext: (SSH2) method to access the repository, which is stored on a remote linux system. We use ssh key ...
0
votes
2answers
4k views

How to enable SSH key login on CentOS 5.5?

I'm trying to setup SSH login on a CentOS 5.5 on an OpenITC VPS. I should say this doesn't appear to have SELinux installed, as commands such as sestatus don't work. I currently have two users, root ...
4
votes
1answer
1k views

ForwardAgent in Jenkins

I'm trying to enable ForwardAgent in the "Publish over SSH" Jenkins Plugin. This would allow jenkins to execute deployments, rsyncs and svn+ssh checkouts on remote servers. But there's no option for ...