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

Extract a .pem file from an existing .ppk or from the server?

So I use windows and so when I first setup my server I had a pem key that I converted into a PPK using puttyGen. Now I no longer have the pem and need to access the server from a mac which uses .pem files. Is there any way to extract the .pem from…
CMOS
  • 101
  • 4
0
votes
1 answer

How to avoid asking password when logging via SSH Key?

I have this scenario: I login to dns1 with key and same with dns2. Suddenly for each of the keys I used it started to ask me server password, this was never happening in past, and I did no changes on both servers at once to have this occur. I tried…
0
votes
0 answers

How to authenticate without password on Chef deployed nodes

I started to use Chef to deal with DevOps automation and now I have a situation were there are two database servers(primary and secondary) being deployed using knife server create , and during the chef-client bootstrap processes, there is a recipe…
Lucas Mattos
  • 483
  • 1
  • 4
  • 5
0
votes
1 answer

ssh: Could not resolve hostname add: Name or service not known

I created non-sudo user and I can't add ssh key while logined with it: % ssh -vvv add ~/.ssh/mykey OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying…
d9k
  • 123
  • 1
  • 7
0
votes
1 answer

Access with ssh only password without publickey with virtualbox

I tried to setup the ssh-server without publickey , with openssh-server 6.7p1-5 changed sshd_config RSAAuthentication no PubkeyAuthentication no PasswordAuthentication yes Restart ssh service from the client side : ssh -o…
0
votes
1 answer

Verify ECDSA Key Fingerprint of Azure Linux VM

I'm starting to play with bash on Windows (Insider Preview build 14316) and have created a Linux VM in Azure. When I ssh into it, I'm presented with "The authenticity of host '##.##.##.##' can't be established. ECDSA key fingerprint is…
Ghillie Dhu
  • 125
  • 5
0
votes
1 answer

Apt-Dater: sorry, you must have a tty to run sudo

Unfortunately I can not connect to a host using apt-dater. The error is: Pseudo-terminal will not be allocated because stdin is not a terminal. ADPROTO: 0.7 LSBREL: CentOS|7.2.1511|Core VIRT: Unknown UNAME: Linux|x86_64 FORBID: 0 sudo: sorry, you…
MyFault
  • 913
  • 3
  • 15
  • 36
0
votes
2 answers

useradd --disabled-password can't ssh using authorized keys

I might've done this wrong. I created a user with : sudo adduser --disabled-password userX And I've added a public key to /home/userX/.ssh/authorized_keys. But when I ssh into the account I get the following error: port 22: Connection timed…
D.Mill
  • 379
  • 5
  • 15
0
votes
1 answer

User without home access remote machine ssh

I want a production server to push backup files to a backup machine. Backups are being done via www-data cron script (as they can be edited by website cms), and once it has finished the idea is to send this files to backup server via rsync & ssh.…
Miquel
  • 103
  • 5
0
votes
1 answer

Connection timed out when trying to SCP from one EC2 instance to another

I'm trying to SCP from one ec2 instance to another (via SSH client). Both server use the same keys. My initial investigation into this led me to believe this would all be possible by using AgentForwarding like so: scp -o "ForwardAgent yes" -v…
braks
  • 103
  • 1
  • 4
0
votes
2 answers

Public SFTP server directory with no password or keyfile

I want to be able to allow users to connect to my SFTP server under a restricted user that only has read access to view files in a certain directory that I upload to without it requiring a password or key-file for the user. How would I accomplish…
0
votes
2 answers

One SSH Key for multiple Ubuntu servers + Windows + Teamcity

I want to use the same SSH key to access multiple Ubuntu servers. The reason for this is that I want to deploy our application in DEV, STAGING, PROD, LOCAL environments through a CI server. We use Ubuntu servers in these environments. The tech lead…
0
votes
4 answers

commands in authorized_keys

I've created an SSH non root/non super user with an authorized_key to remotely login to my server and shut it down however, i'm trying to do this from within the authorized_key file by using the command="" syntax I have the following in the…
Kendall
  • 247
  • 2
  • 4
  • 13
0
votes
1 answer

Fail to login to sudo user on VPS

VPS Supplier: DigitalOcean OS: Cent OS 7 Client: Mac OS X 10.10.3 bash Root I login as root and created a sudo user me. Then I configured the /etc/ssh/sshd_config as following: RSAAuthentication yes PubkeyAuthentication yes PasswordAuthentication…
Zelong
  • 101
  • 1
0
votes
1 answer

SSH: Login to local pc by key

I got a little problem. I'm using apt-dater to keep different linux-systems updated. Apt-dater uses ssh to login to these systems - there's no problem by doing this. To connect to localhost, the system uses ssh monitor@localhost:port I set up the…
MyFault
  • 913
  • 3
  • 15
  • 36