The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
52 views

Allow only first login to ssh with password

I would like to allow to first remote login via ssh using password for a new users. After that authentication should be restricted to public key. How to deal with that? I mean how to restrict second ...
1
vote
1answer
26 views

OpenSSH daemon ignores ServerKeyBits directive

I'm having an issue with my Fedora 19 x86_64 virtual machine. It seems to ignore my 4096-bit key setting. I've set the ServerKeyBits directive to 4096, stopped the sshd service, deleted all host keys ...
3
votes
1answer
35 views

SSH authentication mode selection

I am trying to figure out the SSH mechanism used while I try to ssh onto a production host. I see that the SSH client can choose among the available modes. But I'm not sure which mode is chosen and ...
2
votes
2answers
37 views

Puppet sshkey collection for non-puppet systems

On my systems I use the exported resources, and resource collection to manage the /etc/ssh/known_hosts ref of my systems. This works great for all my SSH hosts that are managed via puppet. But I ...
4
votes
1answer
80 views

Distribute ssh public keys among hosts

I'm setting up some machines with Ansible and need to enable password less connections between them. I've got a database master and several slaves. For initial replication the slaves need to ssh into ...
0
votes
1answer
39 views

Please help me log on to Azure server (simple ssh doesn't work)

I have been trying to log on to my Azure server's Virtual Machine that's running on Ubuntu 12.04 LTS for hours. I would appreciate it a lot if someone could help me. I generated new ssh keys ...
1
vote
1answer
52 views

Windows Password won't decrypt on AWS EC2 even with the correct private key

I created a new Windows instance on AWS EC2, using a keypair I created by uploading my public key from my local machine. The instance launched fine, but it won't decrypt the password. It reports: ...
2
votes
1answer
159 views

Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?

When I import my OpenSSH public key into AWS EC2's keyring the fingerprint that AWS shows doesn't match what I see from: ssh-keygen -l -f my_key It is a different length and has different bytes. ...
0
votes
1answer
42 views

How to set up Git on remote instance using keys from local machine?

I have a setup where I can ssh into my remote server (ie a Google Compute instance) from my local machine. I used to be able to clone, push, and pull from a repository on my remote instance without ...
0
votes
0answers
14 views

Different behaviour on ssh with public key with similar setup

I would like to understand what is going on in my network. This is the scenario: There are three machines A, B and C with same user u for them all The content of u@a:~/.ssh/id_rsa.pub is copied in ...
0
votes
1answer
138 views

Laravel Forge SSH on windows not recognized

I decided to try out the Laravel Forge, but I'm having trouble with the SSH keys. I use digitalocean.com for the VMs and have used SSH keys with success many times before. However when I paste my ...
2
votes
0answers
60 views

ssh to ILO on a DL380 gives key_verify failed for server_host_key

When I try to do connect to the ILO 4 of a DL380 I get the following error: ssh -vvv ilo@me2_ilo OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 debug1: Reading configuration data ...
-1
votes
1answer
37 views

How can i change the default ssh rsa key used? [closed]

I'm using Ubuntu and I have a few keys which i'm using to connect to remote machines. The key I created using ssh-keygen -t rsa is located in my home folder at ~/.ssh/ and called rsa_id. I have ...
1
vote
1answer
339 views

how to connect to mongodb server via ssh tunnel

It was easy for me to connect to my remote mysql server on AWS using a sequelpro, however I'm struggling with doing the same thing with mongodb. I tried setting up an ssh tunnel via command line ...
1
vote
1answer
73 views

Multiple SSH keys per user on the server

Say I run a server which accepts SSH connections, and being a wise person, I use SSH keys instead of passwords to connect to it. There is one user, webmaster, which has access to and controls the ...
2
votes
2answers
81 views

SSH authentication between my VPS and Bitbucket fail

I'm trying to setup SSH authentication between my VPS and Bitbucket for configure later automatic deployment via Capistrano (for web projects) and Capifony (for Symfony2 projects) so I follow this ...
0
votes
1answer
67 views

sshfs mounts from command line but not through fstab

I'm able to mount an sshfs network share from the command line (using Ubuntu 14.04), like this: sshfs server-name:/usr/local/things /home/myname/stuff but I can't make it persistent using fstab. ...
0
votes
0answers
21 views

automated ssh key update: add new, delete old pub key [duplicate]

I want to update my ssh rsa key. It is 16 years old and way shorted than keys created today. I know ssh-copy-id. But this can only add a new key. I want my old key to be removed. I guess there are ...
0
votes
1answer
72 views

How to deliver private ssh keys for a virtualbox controlled by vagrant?

By default, Vagrant uses an insecure private key used when logging into the machine with vagrant ssh. Vagrant supports specifying a different private key via private_key_path however I am not clear ...
3
votes
2answers
55 views

hg pull from Bitbucket fails when run from cron

I have a local copy of a Bitbucket repo on one of my servers (under the user rob), and I created a script that runs every hour in cron and attempts to pull & update the local copy. The issue I'm ...
0
votes
2answers
54 views

SSH config (~/.ssh/config) - advanced configuration

UPDATE: Just to confirm more about my setup in case it wasn't clear: No private keys are ever shared anywhere. (1) Human programmers using Mac each have one SSH key (in ~/.ssh/id_rsa) that they use ...
0
votes
1answer
30 views

Ssh host key verification

I have a Server behind a Port-forwarding Firewall. Server <---> Firewall <------> NAT Port 222 | -----------> VPN I can ssh per key into it from ...
-1
votes
1answer
204 views

SSH “Server refused our key” for all users except root user [closed]

I followed this tutorial and key authentication worked great for root. but when I created user xxx and added different key in authorized_keys and tried to login using putty where error was shown " ...
0
votes
0answers
65 views

SSH not working when called by automated script

SUMMARY: My script which includes ssh runs fine from the command line but the ssh part does not work when the script is called by an an automated daemon (apcupsd). DETAIL: I've got an ESXi server and ...
3
votes
3answers
75 views

Disallow ssh keys without passphrase [duplicate]

I'm currently disabling password authentication on all my ssh servers (good idea of the day!). Some of my servers are shared with other people and I want to force them to use a ssh key with a ...
2
votes
2answers
54 views

SSH key and ip address

A co-worker keeps mentioning SSH keys being associates with an IP address but Im not sure what it exactly means. So i tried generating a SSH key and it had my host name at the end of the file. This ...
0
votes
2answers
37 views

Are the keys created and added when launching an EC2 instance added to ~/.ssh/authorized_keys for ec2-user?

Are the keypairs created and added when launching an EC2 instance added to ~/.ssh/authorized_keys for the ec2-user ? or is there another mechanism used? If so, would the key have a name like 'master'? ...
1
vote
1answer
51 views

How to programatically find default ssh key?

In most of my experience, by default, ssh will look in ~/.ssh/id_rsa(.pub) for the default key pair. Ocassionally I try to write scripts to take advantage of this default key location, but I end up ...
-1
votes
1answer
60 views

SSH through another machine at work to an external server [duplicate]

I'm fairly sure this will have been asked before, I have found similar questions but I do not fully understand how to apply them to my situation. So, sorry for asking again. We have a number of ...
13
votes
4answers
784 views

Publishing id_rsa.pub for easier setup of new environments?

To make setting up passwordless SSH easier on new machines and environments, is there any reason why the id_rsa.pub file (just the public half of the key pair) could not be published somewhere on the ...
1
vote
1answer
94 views

User@host in a SSH-RSA public key

What role does the user@host that often appears at the end of a public ssh-rsa key play? Is it necessary? Does if serve any purpose in the authentication, or is it simply a record of who and where ...
4
votes
1answer
63 views

SSH How do I ignore IdentityFile not found errors?

I currently have this in my .ssh/config file: Host * AskPassGUI no IdentityFile ~/.ssh/%r@%h IdentityFile ~/.ssh/%h IdentityFile ~/.ssh/id_dsa When I ssh into a host that I don't have a key file ...
0
votes
4answers
86 views

can't force ssh to use a particular key

I have tried to specify the key to be used but for some reason ssh still uses a different key as see below $ cat ~/.ssh/config Host BitBucket HostName ...
1
vote
0answers
74 views

ssh login not working for new user [closed]

I have done the same process in several servers. However, this particular one is not letting me login remotely using ssh. Here's what I did: adduser nagios sudo su - nagios mkdir .ssh vim ...
0
votes
3answers
142 views

SSH aborts with Too many authentication failures

I'm attempting to run this simple provisioning script but I'm encountering errors when running vagrant up and then vagrant provision commands. I read that I needed to create a /etc/ansible/hosts file ...
1
vote
1answer
196 views

How do I properly generate a keystore for ssl?

I'm trying to get an ssl certificate from godaddy for use with jetty. These are my steps: keytool -keystore keystore -alias jetty -genkey -keyalg RSA -keysize 2048 What is your first and last name?: ...
0
votes
0answers
38 views

Encrypt MySQL column with ssh-key forwarded by ssh-agent

I would like to keep sensitive data such as user's e-mail address in MySQL database in encrypted form. Is it possible to encrypt/decrypt mail column in MySQL using ssh-key forwarded by ssh-agent on ...
2
votes
3answers
131 views

Disabled root login for SSH in Centos 5.9, key login no longer working

I have a Centos 5.9 server which I have previously configured to access via SSH key login and this has been working fine for many months. I recently had to have an issue resolved remotely which ...
2
votes
3answers
174 views

To add security to SSH-keys from Man-in-middle-attacks [closed]

I would like to get Mobile-phone verification or something else besides the SSH-key verification. How can you add defence to the SSH-keys?
1
vote
1answer
314 views

How do I get a public ssh key on a docker jenkins image for git authentication?

I'm using Docker and I'm running a Jenkins image. The image I'm trying: https://github.com/orchardup/docker-jenkins I need to generate an ssh key pair so I may use it to authenticate to bitbucket. ...
1
vote
1answer
95 views

Can access sshd-server with one user, but not with an second

I am using public-private-keys to access my server. With the user "peter" I can access the server normal, but with the user "git" I can not access the server. Its always asking me for a password. If I ...
3
votes
1answer
64 views

Best approach to generate and use ssh key pairs

New to ServerFault, but have been on StackOverflow for a few months and loving it. I work on a daily basis on 5 servers I have been setting up for some time now. These servers are all AIX 7.1, and ...
-2
votes
1answer
443 views

Impossible to connect ssh /root/.ssh/known_hosts': No such file or directory

I can't connect to my server with ssh. I have already started a session with ssh but i know if i quit this session, i won't be able to connect again to my server. ssh root@genese.com ...
1
vote
1answer
67 views

Why do I have to log into ssh with my password once per day?

When I try to ssh using an encrypted key held in ssh-agent, I get the following (using ssh -vvv): debug1: Next authentication method: publickey debug1: Offering RSA public key: ...
3
votes
2answers
253 views

Ssh-add and contacting server unsuccessfully

I forgot how to do this procedure. I did on OSX 10.9.1 run ssh-keygen in my server moved the private-key id_rsa to my laptop's $HOME/.ssh/id_rsa, removed the private key id_rsa from my server ...
0
votes
0answers
132 views

Capistrano, EC2, Permission Denied despite all user info being correct

So I'm using WP-Stack and trying to deploy from my local machine to an EC2 instance. Ive follow capistrano's SSH literature and I can for instance get the server info by just running SSH and the ...
0
votes
0answers
49 views

SSH between macs in a local environment, full control on each?

I'm attempting to use my Mac Mini as my "central server" in my local environment and then I develop on it, it runs nginx, php-fpm, etc. Everything is working fine. But I wish to do capistrano ...
0
votes
0answers
135 views

Linux TACACS+ auth for SSH but allow users to use public key auth

we have running tacacs environment for centralised login to our routers, firewalls etc and even most of our linux boxes to ssh what we would like to do is allow users to authenticate to SSH via ...
0
votes
1answer
56 views

My new ubuntu server has ssh_host_ecdsa_key and ssh_host_rsa_key files on it already, is this normal?

I have a new dedicated server, which I currently access with username and password over ssh. I have not yet set up an ssh key. I am just looking into it now. So this is a new server with ubuntu ...
3
votes
1answer
227 views

SSH ForwardAgent multiple hops

I've been looking for a solution to the following problem for the past 2 hours with no luck. Development: I'm using publickey authentication to connect to my servers. I use ssh-agent forwarding in ...