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.
760 questions
-1
votes
2 answers

Access Denied to server linux SSH

I can't access the server using ssh user@IP with the right password i get access denied even though the sshd config is set correctly i restarted it reloaded nothing worked. I generated an rsa key over one machine the only one that can access the…
-1
votes
1 answer

Global authorized_keys associated with a user?

Is it possible to have a global authorized_keys file that associates each user to their own public key? For example, I would like to create multiple user accounts by their Github user name and public key. Instead of iterating through each user &…
eppixdev
  • 1
  • 1
-1
votes
3 answers

Unable to SSH into Centos server unless root user

I have a digital ocean droplet that currently allows me to login directly via the root user via SSH as the relevant keys have been added to the authorized_keys file. ssh root@master // this works fine and i'm logged in as root The problem comes…
Zabs
  • 191
  • 2
  • 3
  • 10
-1
votes
1 answer

SSH connect to a server: "Permission denied (publickey)."

I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg: Permission denied (publickey). On my local machine, under ~/.ssh/config I have this set: Host someserver User potatouser HostName…
potatoguy
  • 101
  • 3
-1
votes
3 answers

Linux + how to run the ssh-keygen interactive from bash script

Please advice how to generate the file id_rsa.pub without answering the questions from "ssh-keygen -t rsa" my target is to run the ssh-keygen from bash script from postgress USER, and it must run interactive , or maybe run the id_rsa.pub with…
shalom
  • 451
  • 12
  • 26
-1
votes
1 answer

PTY is not working

I have a problem when trying to log into a server with my ssh keys, it throws me the message: "key_load_public: invalid format PTY allocation request failed on channel 0". I try to fix this by increasing the PTY number of terminals, restarting the…
-1
votes
1 answer

Generating SSH keys for multiple users?

Say, I have a server (CentOS 7) where currently I'm the only user, and have SSH key based authentication set up, it works perfectly. But what if I want to add more users (not many, say, 5 more) to the server and want to disable password-based…
user410850
-1
votes
2 answers

How to stop ssh login from prompting for password?

I was running an Ubuntu 14.04 server with SSH enabled and password login turned off. I accidentally fubared the permissions to my ~/.ssh directory, effectively locking me out. I managed to use a LiveUSB to mount the drive and enable password login…
Cerin
  • 3,497
  • 17
  • 57
  • 72
-1
votes
1 answer

SaltStack: create ssh keypair and add it to authorized_keys

Goal For testing, we want this to work: ssh $USER@localhost. create rsa keypair in ~/.ssh/, if not already there add .ssh/id_rsa.pub to .ssh/authorized_keys, if not already in this file. Question How to do this with salt-stack?
guettli
  • 3,113
  • 14
  • 59
  • 110
-1
votes
1 answer

How to have multi SSH reverse connections using autossh?

I used autossh in my raspberry pi to connect to one of my VPS. But I have 4 raspberry-pi(s). I used the same script to connect to my remote VPS, so that I can login in every raspberry pi anytime remotely. For those 4 pis, I used autossh in this…
dotslash
  • 219
  • 3
  • 15
-1
votes
1 answer

ssh key unlock password some hosts some not

I'm having some issues which i can't figure out, i guess it's a noob question but its giving me a hard time. I have multiple servers, you can only connect via SSH with a key. They all have the same key of my client. If i connect to server A it…
-1
votes
1 answer

Two accounts need new SSH keys

I've got two accounts which are used for automated file uploads on a server and company policy requires that they are updated after 3 years. I wasn't here 3 years ago and I've not done this before. I don't understand how to create the SSH keys for…
-1
votes
2 answers

SSH key rejected by google compute engine instance

I generated my ssh key through the google sdk shell, then i went to put my key in FileZilla and connect to my google compute engine instance and it wont accept my key. How do i fix this?
-1
votes
1 answer

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 login into B from A, or login into A from B (ssh…
Sato
  • 419
  • 1
  • 7
  • 17
-1
votes
2 answers

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 server--one that already has RSA-only access…
Anon
  • 1