The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
692 views

ssh-keyscan - still promoted with The authenticity of host '[hostname] ([IP address])' can't be established

I am scripting a remote rsync setup, and need to add a remote server to the local known_hosts file to avoid getting prompted wit the below when the script is first ran: The authenticity of host ...
1
vote
2answers
80 views

Securing a remote LAMP server that uses Capistrano for Git deploys

I am deploying my Github repo to a Media Temple Grid Server using Capistrano. In order to do this, I've setup the following: Enabled logging into the remote server with SSH keys (following this ...
0
votes
3answers
99 views

can't ssh passwordless - get another user

server 1 which dials into server 2 ssh-keygen -t dsa -b 1024 (no password) scp id_dsa.pub user@server2.com:/home/user/.ssh server2: [~/.ssh]# cat id_dsa.pub >> ./authorized_keys But when I ...
0
votes
1answer
2k views

SSH not working over VPN only

EDIT: the SSH public key setup is a red herring. I actually cannot SSH to any boxes over Junos Pulse VPN, even ones where I don't have my SSH keys stored for password-less login. I have an SSH public ...
0
votes
1answer
2k views

ssh server: could not load host key

I'm configuring ssh server, but have faced an issue. First I generate the private/public rsa keys with: ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key and set password on prompt. Then try to start ...
6
votes
1answer
1k views

Can I SSH into my Amazon EC2 server instance if I don't have .pem file from when instance was created?

I am working with some Amazon EC2 servers that are up and running, and I need to SSH into the servers. I don't have any keys that were generated when the servers were first set up (someone else did it ...
1
vote
1answer
2k views

Git server SSH user authorization failed

I have been installed gitlabhq on SERVER. I have issue while cloning repo from client machine. Not work: client> git clone git@my.serv.ip.addr:myrepo.git /tmp/myrepo client> ssh ...
2
votes
1answer
372 views

Use CloudInit cloud-config file to add authorized_keys for multiple users

Is it possible to add ssh authorized keys for multiple users using a #cloud-config file with CloudInit? I'm trying to initialize a new EC2 instance created from an Amazon Linux AMI using CloudInit. ...
0
votes
2answers
1k views

How do I set up an AWS instance to allow others to SSH in?

I've recently set up a AWS EC2 instance (using an Ubuntu AMI) for a web project. I of course created a public/private pem key which I sued to log in a and set up the instance. Now I have a new ...
1
vote
2answers
1k views

How to use PEM keys from EC2

I understand the concept of "ssh keys" to login to a server without entering a password, however, I am not understanding how/what PEM key files are to log in to EC2 instances. In the AWS console, I ...
0
votes
1answer
695 views

ubuntu - public-key for authentication

I have a master and slave cluster. I am setting up cloudera manager. On the master I created a passwordless key using the following. ssh-keygen -f id_rsa -t rsa -N '' eval `ssh-agent` ssh-add ...
0
votes
1answer
2k views

SFTP without password prompt (from linux to windows)

I'm using freeFTPd as a sftp server on windows machine. From my linux machine(ubuntu) I want to do a SFTP from to windows and i want to bypass entering password as i'm trying to do this with scripts. ...
0
votes
2answers
743 views

EC2 SSH / SFTP issues

I have done a lot of searching on this issue, and can not find anything particularly relevant. I have many instances spread across zones and grouped into various load balancers. One of the groups is ...
7
votes
4answers
10k views

How to change a SSH host key?

I cloned a server and so they've the same RSA key fingerprint. It seems to be defined in /etc/ssh/ssh_host_rsa_key.pub. What is the correct way to change that? Thanks.
0
votes
2answers
192 views

Is it “safe” to allow external access via SSH if authorized keys are required? [closed]

CentOS 6 | OpenSSH I have an external facing server and would like the convenience of being able to access it via my phone. The system itself is an island and has no association/connection to my ...
0
votes
1answer
142 views

passwordless scp without keys

I am looking for some option that will allow me to accept files from any server using SCP command. I am aware of the process of creating password-less logins. But what I am looking for is an option on ...
11
votes
2answers
548 views

What to do when someone logged as root on my server

I have a server running Debian 6.0 with logcheck installed. Yesterday ago, I received this message: Jan 19 19:15:10 hostname sshd[28397]: Authentication tried for root with correct key but not from a ...
1
vote
1answer
127 views

Disable specific OpenSSH host keys

The general idea I've been finding on this is that if you remove the HostKey line which corresponds to a specific key, the key will stop being generated. For whatever reason though, my sshd_config ...
0
votes
2answers
154 views

SSH:using single public key on multiple remote machines and spoofing-by-known-server

Lyrics Usually, people say, that using single public key on several servers is just as secure as using unique public keys on each of them. (If we're not talking about possibility of private key being ...
0
votes
3answers
6k views

ssh key error - Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

Amazon Ec2 :: Redhat 6. 64 Bit I'm trying to follow the socks5 guidelines (http://www.catonmat.net/blog/linux-socks5-proxy/ ) to open a socks on one of our servers but unfortunately I got suck at step ...
0
votes
1answer
43 views

seamless ssh with condition

I am looking for a way of seamless ssh in a way that when user does ssh through shell, it will be disallowed (or normal rules apply) but if a process (non-interactive) tries to ssh with the same user ...
0
votes
1answer
180 views

Write permissions of www-data user and public key issue

I am using Ubuntu and I am having the following problem. I am using a PHP function called exec to get the latest git changes from my remote repo. E.g.: exec("git pull");. The file is placed in ...
6
votes
4answers
4k views

Trying to SSH in to remote computer but still asking for password

Trying to SSH in to remote computer but still asking for password. I have a number of computers running SElinux and only one of them is giving me a hard time using ssh without the password. I did ...
4
votes
1answer
77 views

ssh rsa key auth only occurs if I am already logged in on console

Can't figure this out - am using id_rsa key based authentication to our servers (approximately 400 Linux and UNIX servers). In this case I have 3 identical servers with 3 recent installs of Ubuntu ...
0
votes
3answers
413 views

rsync without password, none of google (server fault) tutorials worked

I need to use rsync for a daily backup operation and in the past (on different servers) I managed to just use a rsa key etc, but now none of google (serverfault) tutorials work at all. It keeps ...
0
votes
2answers
66 views

Unable to SSH into EC2 instance on Fedora 17

I did following steps But I am not able to SSH to it(Same steps work fine on Fedora 14 image). I am getting Permission denied (publickey,gssapi-keyex,gssapi-with-mic) I created new instance using ...
3
votes
1answer
3k views

ubuntu 12.10/linux mint 14 ssh-copy-id doesn't work and returns Ambiguous output redirect

I recently got a new computer and I'm trying to use ssh-copy-id to put my keys on another server so I can login without password. but when I try ssh-copy-id -i ~/.ssh/id_rsa.pub user@server and ...
1
vote
6answers
15k views

SSH as root using public key still prompts for password on RHEL 6.1

I've generated rsa keys with cygwin ssh-keygen and copied them to the server with ssh-copy-id -i id_rsa.pub root@my.ip.address I've got the following settings in my /etc/ssh/sshd_config file ...
2
votes
2answers
518 views

Gerrit ssh key setup on windows server

I am attempting to configure google's 'Gerrit' code review web app on a Windows server 2008 virtual machine on our internal network. We are using Apache Tomcat (6.0.36) to host the web app and have ...
8
votes
2answers
6k views

How do I validate a RSA ssh public key file (id_rsa.pub)?

Are there any command I can verify the public key (id_rsa.pub), just the format only Sometimes I have added a new linebreak, sometimes the file missed the ssh-rsa prefix, so are there any command to ...
1
vote
5answers
401 views

Setting up SSH Key securely for SCP/rsync to run without password

This is how I am currently doing it: # ssh-keygen -t dsa -b 1024 -f /root/localhost-rsnapshot-key Enter passphrase (empty for no passphrase): [press enter here] Enter same passphrase again: [press ...
1
vote
3answers
510 views

How do I solve this error: ssh_exchange_identification: Connection closed by remote host

data@server01:~$ ssh user@10.7.4.1 -vvv OpenSSH_5.5p1 Debian-6, OpenSSL 0.9.8o 01 Jun 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: ...
0
votes
1answer
110 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
623 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
2k 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
157 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
255 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
162 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
149 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
62 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
217 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
78 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 ...
4
votes
2answers
168 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
102 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
189 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
76 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 ...