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

Use the same SSH key to both connect to remote server and push to GitHub from that server

I've generated an SSH key pair to log to my remote server. I've also added that same public key in GitHub. So from my own machine, I have SSH access to GitHub: Hi hdodov! You've successfully authenticated, but GitHub does not provide shell access. …
dodov
  • 141
  • 4
0
votes
1 answer

cannot ssh into Amazon EC2 Instance, first time setting it up

Can't SSH into instance, security groups and everything else looks good. Is the not having a key pair the problem? https://admiral-iad.ec2.amazon.com/instance/62622761750#linker_verify_account=786080552225
user564446
0
votes
1 answer

Is it possible to generate a new SSH Key pair for an existing instance?

Setup: Bitnami Wordpress Lightsail Stack Is it possible to generate a new SSH key pair for an existing instance? What are the steps to generate a new SSH key pair for an existing instance (without stoping or deleting the existing instance) if that…
-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
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
  • 461
  • 13
  • 29
-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,600
  • 19
  • 61
  • 79
-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,591
  • 17
  • 72
  • 123
-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
  • 16
-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?