The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
3answers
134 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
754 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
128 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
159 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
1k 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
598 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
336 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
167 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
257 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
243 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
390 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
576 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
97 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
211 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
58 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 ...
2
votes
3answers
1k 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 ...
14
votes
1answer
3k 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
934 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 ...
1
vote
1answer
75 views

ssh from username1@client to host using username2@destination

Forgive the possibly simple question, but I cannot seem to find a good solution. A backup job needs to rsync files to a destination host, over ssh. The only login available to me is ...
1
vote
2answers
719 views

How do I setup seamless SSH access on centOS 5.7?

Well I haven't had to do this before until now, but I created an account on a remote server purely for shared git repo access and now need to setup seamless logins via ssh on each dev machine. I have ...
0
votes
1answer
273 views

SSH public key authentication without DNS entry

Server A thinks it is called foo.bar.com, but actually there's a problem (not in my control) with the DNS registration, so I connect to it at 192.168.1.1. I want to be able to scp from there to server ...
2
votes
2answers
472 views

Different ssh fingerprints on server. (MITM attack?)

When I try to ssh to my server in Germany from my UK laptop I get: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It ...
0
votes
1answer
470 views

Freebsd ssh key doesn't work

I have a problem with ssh key on freebsd vps. I generated a key and it works on debian. i usually just copy paste it to ~/.ssh/authorized_keys and it starting to work. In freebsd it doesn't. I tried ...
5
votes
4answers
763 views

Why VPN when I can just use SSH keys?

A friend of mine installed VPN on our LAMP development server. Previously, we just used SSH and sometimes SSH public keys to avoid password prompts. My question is, what is the advantage of using ...
6
votes
1answer
116 views

Determine when someone last logged in to a server from a key

I'm trying to track the last time a user logged into a Linux server with a certain key. So user secure has 5 keys in ~/.ssh/authorized_keys, how can I track when each key was used and what IP was used ...
3
votes
1answer
398 views

How do I import a RSA SSH key into GPG as the _primary_ private key?

I currently have a SSH key that I've used for a while and I'd like to start using GnuPG with a new keyring. However, given that I've used my key for ages, I would like to still use that key in GPG as ...
2
votes
2answers
108 views

Cannot SSH after resetting firewall on VPS

I'm having trouble trying to SSH to my Debian 5 VPS with blacknight. It was working fine until I did the following: Logged into 'Parallels Infrastructure Manager' -> Container -> Firewall -> Set to ...
1
vote
2answers
278 views

Public key authentication - SSH asks for passphrase after rebooting local machine?

I created a public/private key pair on a local machine using ssh-keygen. I entered a passphrase. I then used ssh-id-copy to put the public key on the remote machine. When I ssh into the remote ...
1
vote
1answer
57 views

Is it possible to kill SSH connections that aren't running a command (e.g. with -N)

If a client does not execute a command (e.g. with -N) within some timeframe (1-2 seconds) after establishing the SSH connection, I'd like to terminate it from the server. Unfortunately, ForceCommand ...
0
votes
1answer
495 views

Rsync without password and different port to rssh shell

i was trying to Rsync without password to rssh shell using ssh-keygen and ssh-copy-id -i /root/.ssh/id_rsa.pub '-p 12345 user@example' but i couldn't got the following message This account ...
0
votes
2answers
122 views

password-less ssh works to connect to one user on a remote machine but not another

The remote server is running CentOS 5.5. I have created an rsa key from my client server, and copied it into /home/hadoop/.ssh/authorized_keys. This worked fine - I can ssh to hadoop@remoteserver ...
1
vote
2answers
388 views

Known SSH server always ask my password on the first connection, following connections use key authenticating

When I try to connect to a certain server (present in ~/.ssh/known_hosts) where I copied my public key, it always asks my password. If I close the connection and try again it uses my key correctly. If ...
2
votes
1answer
356 views

Deploying git repo on production server without account password

What I would like to do How can I clone a git repository on my production server, without providing the account's password, and passphrase for the SSH key? Perhaps what I'm asking is not possible. ...
0
votes
1answer
893 views

Why would ssh-agent forwarding not work for particular users?

I'm having a ridiculous amount of difficulty getting SSH agent forwarding to work effectively for two users. Both can login to a remote servers without a problem, and it looks like their agents are ...
2
votes
1answer
747 views

Duplicity restore reports “Invalid SSH password” when I'm using a private key for connection

I'm testing the restoration of a backup with duplicity 0.6.15. I can login to my backup server just fine using ssh and sftp using the following commands and my private key: ...sftp root@client:~# ...
1
vote
5answers
332 views

SSH - using keys works, but not in a script

I'm kind of confused, I have set up public keys between two servers and it works great, sort of. It only works if I ssh manually from a terminal. When I put the ssh command into a python script, it ...
34
votes
9answers
8k views

Why is SSH password authentication a security risk?

Most guides for OpenSSH configuration advise to disable password authentication in favor of key-based authentication. But in my opinion password authentication has a significant advantage: an ability ...
-1
votes
3answers
149 views

sudo password with key authentication

I'm logging into my CentOS server using key authentication. I'm attempting to sudo a command but I don't know what the password is! How can I find this?
1
vote
2answers
553 views

System-wide authorized_keys

SSH auth by RSA-key: ~/.ssh/authorized_keys. Okay. Is there a way to set a system-wide authorized key so I can login to any account, including the newly created ones? The reason: i've got a server ...
8
votes
1answer
554 views

Allow password access for all users except root?

I want to leave the root user enabled on my servers for convenience, and the only reason people are against the idea (that I know of) is brute-force attacks on SSH. So, is there is a way in SSH to ...
1
vote
1answer
954 views

Issues with ssh-add

I am attempting to add an ssh key using ssh-add. Upon running ssh-add ~/.ssh/insertkeynamehere I am prompted with: Could not open a connection to your authentication agent. After doing some ...
0
votes
1answer
618 views

Can not log in to Amazon EC2 instance (Beginner)

I am having difficulty logging onto my Amazon ec2 instance. I set it up, downloaded the key. At first it complained because my permissions were setup correctly. Then I executed: chmod 400 ...
10
votes
3answers
26k views

how do you create an ssh key for another user?

I'm trying to create an ssh key for another user. I'm logged in as root. Can I just edit the files generated by ssh-keygen and change root to the user I want?
0
votes
0answers
314 views

Permission denied(public key) error when login to Ec2 instance

I am trying to ssh the Ec2 instance with the following private key, but it's throwing an error : Permission denied(public key). Here is the syntax: **ssh -i gs.pem -v ...
1
vote
2answers
722 views

Connect SSH Bastion Server to DB Server

I want to connect to a Linux Database Server on a private subnet through a Linux SSH Bastion Server situated on a public subnet. I also want to create a tunnel to port 3306. When I attempt to create ...
2
votes
1answer
626 views

Can't seem to SSH into AWS EC2 instance, ssh permission denied error

I've launched a new EC2 instance with AWS using Amazon 64 bit linux (amzn-ami-2011.09.1.x86_64-ebs (ami-20506254)) and I'm having trouble ssh-ing into it. I've generated a public/private ssh keypair ...