The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
27 views

generating ssh-keys for a non root user with salt

I need to generate ssh-keys(public/private pair) for a user say helen. This user is already in all my salt minions. How do I generate ssh keys for this user from my salt master? For root user I ...
2
votes
2answers
433 views

Does Mac OS X Cache Private Keys for SSH?

I have SSH key-based authentication setup to connect to a remote server from my Macbook Air. The private key was originally stored in ~/.ssh/id_rsa, but I have since moved that file to a secure ...
0
votes
1answer
33 views

ssh key authentication - port other than 22 involved

I've noted this entry in auth.log Accepted publickey for myuser from ip_address port 51150 ssh2 That entry corresponds with my ssh-key-based login event. SSH is listening to default port - 22. ...
1
vote
1answer
4k 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
921 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?: ...
-2
votes
3answers
37 views

Is it possible to use key based auth AND interactive auth with SSH? [closed]

I'd like to use key based auth so I can SSH to linux systems without needing to specify a password and just worry about keeping the key file safe, but there's a chance that someone else (who that ...
0
votes
0answers
26 views

Enable root password on remote server

I'm playing around with ssh-with-rsa-key authorization instead of password authorization and because I'm not really clever I've locked password authorization for root(passwd -l root) on remote server. ...
1
vote
1answer
25 views

Instance created from shared snapshot gives Server refused our key error

I have created an instance from a shared snapshot from other aws account,following steps were done by me, 1.Share snapshot from other account. 2.copy it to my account. 3.create a volume from it ...
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 ...
1
vote
0answers
102 views

AWS connection error: Permission denied (publickey)

Sorry if this sounds redundant to you but trust me its not. I have tried almost majority of the links related to this problem but nothing is working for me so far. I even tried this article two. Below ...
0
votes
0answers
25 views

PAM: authentication error

I am trying to connect from Windows 7 Jenkins slave to a MacMini machine in one of the final build process of Jenkins build. This has been working for some time now till last nigh. There has been no ...
1
vote
1answer
49 views

What is the best way to distribute a rsa ssh key over a large amount of servers?

I know one way, running on a list of server like so: for server in $(cat server.list); do ssh-copy-id user@host done But I was wondering if there's a better way to do it? something automatic which ...
0
votes
1answer
92 views

Unable to ssh to GCE Permission denied (publickey)

I created a VM via bitnami in Google Compute Engine. Previously I was able to ssh via the bitnami web interface. I tried to ssh via terminal on my Mac but kept getting the Permission denied ...
5
votes
1answer
301 views

One Unix account for several users on GitHub, how does it work?

When we create a repository on GitHub, we can always access it with the address "git@github.com:user/repo" but how does it work behind the scene? ...I mean, there is only one Unix account: "git" ...
7
votes
2answers
995 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. ...
1
vote
2answers
98 views

Add remote host to known_hosts file without prompt [duplicate]

I wrote some scripts and wish to add a remote host to my known_hosts file without any interaction. I can run a command like ssh -o "StrictHostKeyChecking no" root@10.x.x.x which will add the remote ...
2
votes
1answer
48 views

Auto accept rsa key fingerprint from command line

I've tried yes | ssh root@10.x.x.x to try to accept the RSA key fingerprint, but am still prompted if I'm sure I want to connect. Is there a way to make this automatic?
-1
votes
1answer
32 views

How to auto login a .ssh server from a .ssh2 server?

I have a server A which ssh-keygen produce a .ssh2 direcotry and id_dsa_2048_a* files and a server B which ssh-keygen produce a .ssh directory and id_rsa* files and a server C like B How can auto ...
1
vote
1answer
94 views

Fabric used to work with ssh-keys, but not anymore

I have my ssh key set up correctly and I can ssh into the remote machine without password. However, my fabric deploy script which could authenticate automatically until a couple of hours ago, started ...
1
vote
0answers
30 views

Centralize way to prevent interactive logins

I have an Ubuntu server that is used for two primary purposes for my students: To hold on to files that students need to temporarily upload for my assessment (ie: I give them an input image, and ...
5
votes
1answer
211 views

Rsync + public key authentication security

I have read several articles how to automatically backup files with Rsync and public key authentication. All of them are very similar. I just finished setting up everything and everything works fine ...
3
votes
0answers
635 views

SSH_ORIGINAL_COMMAND variable not getting set

I am working with two servers, both of which run FreeBSD 8.4-RELEASE-p1 and OpenSSH_6.1p1. Both servers' ssh_config files, located in /etc/ssh, are identical. Both servers are configured to allow ...
1
vote
2answers
46 views

Ability to use SSH Key / PEM for web authentication in lieu of password protection?

I've been trying to figure out a way to lock down our dev site even more, and the idea came up that instead of using IP centric + Password protection, using something more akin to a PEM key, like I ...
-4
votes
1answer
28 views

Disable ssh auth by keys

Usually all disable ssh login with password only. I'm asking about reverse situation. Does sshd_config allow to disable authentication with keys only?
2
votes
5answers
4k 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
220 views

SCP transfer doesn't work and SSH ls freezes

I am trying to copy some file via ssh with a SSH-RSA public key. I've already accepted the host key in my server and viceversa so the keys are synchronized. Now I try to connect via SSH to the host ...
-1
votes
2answers
89 views

Putting My RSA Public Key on RSA Key-Secured Server

Hello and thanks for reading, Basically, I'm taking over for someone on some system admin duties, learning as I go, but one problem I've run into is not having my public RSA key put onto a particular ...
-4
votes
2answers
70 views

Where to safely store ssh private key? [closed]

I'm using ssh keys to log in some servers. My private keys hasn't a passphrase, but I'd like to store it in an encrypted online storage service. Is that safe? Are there any free available options? If ...
0
votes
3answers
1k views

git private server error: “Permission denied (publickey).”

I followed the instructions here in order to set up a private git server on my Amazon EC2 instance. However, I am having problems when trying to SSH into the git account. Specifically, I get the error ...
0
votes
2answers
467 views

SSH Public Key Authentication only works if active session exists before

I have a rather strange problem with my SSH configuration. I set up my server with the help of a Remote Access Card and configured everything with a KVM viewer. So while being logged into the server ...
3
votes
1answer
2k views

deploy ssh key from master to minion via salt pillars

I have two ssh keys that I'm trying to deploy to one of my minions.But I cant seem to get it to deploy.It errors out....Here is the init.sls in pillars.... /xxx/yyy/zzz/id_rsa: file.managed: - ...
4
votes
1answer
617 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 ...
0
votes
2answers
231 views

SSH into EC2 with dynamic public IP address

Typically I set ssh aliases as follows: ssh -i ~/path/key.pem ubuntu@public-host-name.compute-x.amazonaws.com But with EC2 instances, the public-host-name changes whenever an instance is stopped and ...
-2
votes
3answers
321 views

Public Key authentication fails while using the -i parameter on ssh command

I have to do public key based authentication on two Linux servers. Machine 2 (192.168.3.132) username: vfx_30 home dir: /home/vfx_30 ssh keys: /home/vfx_30/.ssh/id_rsa /home/vfx_30/.ssh/id_rsa.pub ...
-2
votes
2answers
30 views

SSH using ssh_key from a different account

Is there a way for a user to ssh as a different user using ssh_keys? For example, i have host A B and C. User X SSHes from A to B as himself ( A -- as X --> B ) Now the user wants to SSH to C from ...
2
votes
2answers
693 views

Unable to SSH into EC2 instance

I've read through the existing answers to this topic, but I still can't seem to connect. I've created an AWS key and saved to my ~/.ssh folder. The command: ssh -i ~/.ssh/jdrake.pem ...
1
vote
1answer
309 views

Accept any SSH connection irrespective of client key

Imagine I'm setting up a honeypot, what would be the quickest way to setup SSHD to just accept any connection? and yes, this is really insecure, so please don't copy :-) Might be useful (put ...
0
votes
1answer
59 views

Authorizing users to SSH into machine - where to configure?

Ubuntu Trusty here. I'm having some trouble deciding where in the system I should configure which users are to be allowed to ssh into the machine, and which keys they're allowed to use. I've ...
0
votes
2answers
99 views

Keypair with Shellinabox?

I've got an Amazon EC2 instance with a keypair, and I want to setup shellinabox so I can ssh from any web browser. However, shellinabox only seems to allow password logins and I wasn't able to find ...
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 ...
1
vote
3answers
121 views

ssh-keygen create ssh key for linux user

Being a Sudo user, is it possible to create a SSH key for an user in the same Linux server? This Sudo user doesn't have a Switch user privilege. I have a server where I Login as sudo user say ...
2
votes
0answers
54 views

Specifying multiple SSH signed certificates for one Identity file

I am looking to implement signed certificates for SSH authentication. I have followed the steps here and am now trying to figure out how I am going to implement it on my systems. As an example, we ...
3
votes
2answers
2k views

SSH key problems: Not a RSA1 key file unknown key type '-----BEGIN'

A backuppc server is able to sign into remote machines as root and backup them up, but if I sign in as the backuppc user and try to ssh into these machines using the same key, the key is rejected with ...
1
vote
4answers
272 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
2answers
73 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 ...
5
votes
5answers
1k views

How can I flush my ssh keys on power management activity?

Using ssh-agent and private keys per the usual. Everything's working as normal. My question regards best practices on flushing keys from ssh-add on activity like sleep, suspend, hibernate, etc. I ...
1
vote
1answer
501 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 ...
15
votes
6answers
9k views

Is there an equivalent to ssh-copy-id for Windows?

Is there any equivalent or port of ssh-copy-id available for Windows? That is, is there an easy way to transfer SSH keys from a local machine to a remote server under Windows? In case it helps, I'm ...
2
votes
5answers
3k views

how to SSH to EC2 without explicitly using the pem key?

I have a windows as my main OS. Using VMware player, I setup a Ubuntu server 12.4 as a guest machine. The Ubuntu server have "ubuntu" user. I created a new EC2 instance + setup pem key. From the ...
3
votes
1answer
96 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 ...