Questions tagged [ssh-keys]

an authorization mechanism for SSH involving public-key cryptography.

SSH keys are an authorization mechanism for SSH involving public-key cryptography. It consists of

  • A private/public key pair generated by a utility like ssh-keygen.
  • A configured (in /etc/ssh/sshd_config) SSH daemon that allows public key authentication.
  • A configured user account that has the public key copied to ~/.ssh/authorized_keys.
792 questions
0
votes
1 answer

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 freshly installed, is it normal that the /etc/ssh/…
user203834
  • 35
  • 5
0
votes
2 answers

bash script to create user then create ssh keys

Please note I am a total linux newbie, please bare that in mind when answering this question as I have very limited knowledge of linux. OS: Debian Squeeze I am using ZSH and have created a function called webuseradd it looks like this: function…
George Reith
  • 673
  • 2
  • 12
  • 22
0
votes
1 answer

configuration files and ssh keys are being reset

I own a Centos 6.4 OS. I have standard lamp stack installed. Apache 2.2, PHP54 and mysql 5.5. I have also uploaded a public key into my authorized file in .ssh. I have my document root set in my httpd.conf. Everything works as it should. Until a…
Seph
  • 101
  • 2
0
votes
2 answers

Does ssh-copy-id overwrite previous keys?

I haven't yet found any definitive answer on this using google. It seems like the answer is no, but I need to know for sure before I go ahead and do it. Does ssh-copy-id append the key to authorized_keys or does it overwrite the previous…
ryanwinchester
  • 151
  • 1
  • 7
0
votes
1 answer

Can I use switch user "su" with keys / certificate?

I just locked myself out of SSH. Basically, I added three users to /etc/ssh/sshd_config using the AllowUsers directive, which is great because now they can login, but now I can't, and I'm the only user on the sudoers list. I would happily do an…
John
  • 3
  • 3
0
votes
1 answer

Are using ssh keys PCI compliant?

From PCI-DSS point of view, are using SSH keys for passwordless authentication secure enough? TIA, Vitaly
0
votes
3 answers

Setting up Chef Node: Amazon EC2 instance is create but bootstrap fails

I am trying to get going with Chef and the freebie Chef server from Opscode. I got my Chef workstation configured on a local VM running Ubuntu 12.04LTS. I downloaded the chef-repo from GitHub as per the instructions. I downloaded the keys from…
Jay Godse
  • 111
  • 1
  • 5
0
votes
1 answer

Using authority-given .cer file to login on remote servers on OS X

A few months ago I bought a certificate from a popular certification authority (Certum). I used it to sign emails, but today the admin at my work asked me to connect to our main server via ssh. He gave me a generated (by himself) .ppk file (which…
ex3v
  • 123
  • 1
  • 7
0
votes
3 answers

No authorized_hosts file created

I want to log in without having to enter a password. I have explored my options and generated keys. The next step mentioned is to copy the file contents to authorized_host file. But that file does not exist in my case. I am connecting to a prompt…
kingpin
  • 3
  • 1
  • 3
0
votes
2 answers

Generate ssh key pairs to connect to additional remote machines

I've already generated a ssh key pair to connect to a remote machine, and now need to connect to a second/separate machine using the same method. Should I continue using the same existing key pair (by copying the public key to the new machine)? Or…
Simon Hughes
  • 195
  • 1
  • 1
  • 3
0
votes
1 answer

ssh_exchange_identification: Connection closed by remote host remote desktop

I'm trying to connect to my work server using my macbook. in the morning it was working and now its not. This is what im doing ssh -vv muhammad@man.softwarehouse.com -L 1024:bolton:3389 This is the verbose OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb…
c11ada
  • 103
  • 1
0
votes
2 answers

puppet enterprise node install - Security risk?

I am learning puppet and using this tool install puppet clients on nodes. puppet node install --login=root --keyfile=~/.ssh/id_rsa --install-script puppet-enterprise --installer-payload ~/puppet/puppet-enterprise-2.7.0-ubuntu-12.04-amd64.tar.gz …
Michael
  • 801
  • 1
  • 7
  • 15
0
votes
2 answers

Web server intermediary for public key authentication

My home network is currently sitting behind a DD-WRT router that I can access using public key authentication. Whenever I need to access something from my home network I can simply create an SSH tunnel from the DD-WRT router. Providing my private…
ddewaele
  • 333
  • 1
  • 4
  • 12
0
votes
3 answers

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 do ssh user@server2.com I…
Tiffany Walker
  • 6,681
  • 14
  • 56
  • 82
0
votes
2 answers

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 an "API" utilized by various different…
David
  • 13
  • 4