an authorization mechanism for SSH involving public-key cryptography.

learn more… | top users | synonyms

0
votes
1answer
116 views

SSH automatic logon works for one user but not the other

I want to enable automatic ssh login using the .ssh/config file for my git user. Here is my .ssh/config file: Host test HostName myserver.net User test IdentityFile ~/.ssh/id_rsa Host ...
1
vote
2answers
688 views

How to make 2 linux machines accept each other ssh connections without asking for a password

I need to create a cron script that will scp all the logs from one machine to a log parsing machine but when I scp I am requested to insert a password. Usually, when I connect to the servers using ...
4
votes
1answer
3k views

Why does SVN+SSH prompt for password despite a SSH key file?

I have keys configured such that I can login to SVN_HOST like this: ssh <USER_NAME>@<SVN_HOST> Will log me to SVN_HOST with no password prompt. So far so good; however: svn update ...
3
votes
2answers
159 views

Block passphraseless ssh keys

Is there an sshd config command to block keys that have blank or empty passphrases in them? I'd like to limit ssh access to people with passwords without having passwords stored on servers.
1
vote
1answer
289 views

ssh host key management between ha hosts

We have a setup with 2 Redhat-based servers which are both ha hosts behind a virtual ip. 192.168.0.3 dataserver (virtual ip) 192.168.0.1 dataserver_ha1 (physical server) 192.168.0.2 dataserver_ha2 ...
1
vote
2answers
170 views

prevent files modification from users: is this method safe?

I was wondering today if there was a way to enforce a non root user to have a specific authorized_keys file (among other sensible files). I came up with this solution. Disable StrictModes in ...
0
votes
1answer
160 views

ssh over a tunnel in order to configure auto login

I m trying to copy the id_rsa.pub key to the server. The server in my case also has a virutal machine called dev which runs on the host machine. I copied the id_rsa.pub key to the host for auto log in ...
4
votes
3answers
3k views

SSH: one authorized_keys for multiple service accounts

Is there a way to configure SSH to check a single authorized_keys file for multiple users? I know I can copy the public key into each user's authorized_keys file but for ease of management I'd like an ...
-1
votes
2answers
63 views

Logging in using SSH keys

I created a non-root user, new_user, on a Red Hat Linux machine. I then logged in as new_user and created a private/public key pair. I've created /home/new_user/.ssh, and I've appended the public key ...
1
vote
1answer
2k views

ssh remote command using password-less sudo fails

Logged on as bryan@localserver, I'm trying to perform a backup using rsync on a remote host bryan@remoteserver. I need the rsync connection to elevate privileges on the remote host using ...
2
votes
1answer
262 views

Why does ssh public key authentication stop working when I am tunneling ssh commands through a machine?

On Computer A, I have a public and private key for my github account. When I use this machine directly, using a connected keyboard and display, I can do all the git remote repo commands, like git pull ...
0
votes
2answers
84 views

SSH private-public key auth, disable normal password auth, can still login locally?

I've been using private-public key logins on my home server for several years but I've always left PasswordAuthentication yes so that if anything untoward happened I could still login. Of course the ...
5
votes
2answers
174 views

Theoretical situation regarding lost ssh keys

This has not happened to me, yet. But let's assume the following scenario: I copy my public key to the server, and then disable password authentication for ssh. Then, for some unknown reason, the ...
3
votes
1answer
105 views

Security issue with ssh on Debian server

I have setup Debian Squeeze on an old laptop to serve as a testbed. I have installed OpenSSH and edited /etc/ssh/sshd_config to use ssh keys and disallow password authentication. I am able, however, ...
0
votes
1answer
2k views

SSH Public Key Authentication not working with PuTTY

I have created a virtual machine and installed Redhat 6. I am having issues connecting using public key authentication. I can use PuTTY on my Windows host to connect to the redhat guest, where I am ...
2
votes
1answer
197 views

Copying SSH Key-Pair Generated by Putty to MacOS

i have a target BSD machine where i connect to from my windows box, i copied the public and private key pairs that are generated by putty and i'm trying to use them on a different laptop with Mac OS. ...
5
votes
2answers
3k views

SSH from PuTTy to Debian “authorized_keys is not a regular file” Error

I cannot connect from my Windows 7 computer using PuTTy to a newly configured Debian Squeeze server using SSH RSA key authentication. I get this error when running SSH in debug mode: User myuser ...
0
votes
2answers
77 views

Remote host making strange request. Am I safe?

I am starting work for an organization on their server. They need to allow connections from my server in order to use GIT over SSH. They asked me to place this in my SSH directory: SHORTNAME=abcdef ...
1
vote
2answers
445 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
136 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
187 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. ...
10
votes
2answers
3k 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 ...
7
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
363 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
715 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
13k 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
203 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
564 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
183 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
10k 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
414 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
242 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
5k 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
211 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
205 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
511 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
136 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
903 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
158 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
572 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
158 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
144 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
177 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 ...