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

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 ~/.ssh/id_rsa I then placed the key on all slaves. …
Tampa
  • 338
  • 2
  • 8
  • 17
0
votes
1 answer

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. freeFTPd has an option to generate a key. I saw a…
m4n07
  • 101
  • 1
  • 2
0
votes
2 answers

Is it "safe" to allow external access via SSH if authorized keys are required?

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 internal network at all. I presently have SSHD…
Mike B
  • 11,871
  • 42
  • 107
  • 168
0
votes
1 answer

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 central server that can be changed to accept…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
2 answers

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 compromised) But... I don't get, if it's possible…
Igor
  • 141
  • 6
0
votes
1 answer

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 should be allowed without password. May be some…
ashji
  • 1
0
votes
1 answer

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 /var/www. When accessing from shell (user 'myapp') works…
edwardmp
  • 148
  • 1
  • 7
0
votes
3 answers

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 asking me for a password. I have webmin and ssh/root…
0
votes
2 answers

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 fedora 17 amazon community image(ami-2ea50247). I…
Alex
  • 1
0
votes
1 answer

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 using this command. ssh-copy-id -i…
Vihaan Verma
  • 103
  • 4
0
votes
2 answers

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 likelihood of anything untoward happening is…
batfastad
  • 456
  • 1
  • 11
  • 22
0
votes
1 answer

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 prompted for a password. I am trying to setup…
haydenc2
  • 25
  • 1
  • 2
  • 5
0
votes
2 answers

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 FULLNAME=12.34.56.789 PORT=9999 ssh-keygen -t rsa…
Michael Ecklund
  • 251
  • 2
  • 5
  • 13
0
votes
2 answers

Disabling password login for certain users for SSH

I added this to the bottom of the sshd_config file Match User user PasswordAuthentication no Then I restarted SSH, and when I went to go SSH into my server I got the error Permission denied (publickey) How do I make it so a specific user can…
Max00355
  • 133
  • 1
  • 7
0
votes
1 answer

ssh rsa keys expires after 5 years

I'm using an old login with ssh-rsa public/private key and all was good. I noticed that a couple of days ago the authorizazion was avoid with message "server refused our keys". After diggin' I figured out that the couple of keys stop working after…
Kreker
  • 458
  • 4
  • 10
  • 22