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

sshd not providing ecdsa/ed25519 host key algos

we have setup'd a bastion that only responds with the ssh-rsa host key algorithm when querying: ssh-keyscan bastion.ops.dev.xxx.com # bastion.ops.dev.xxx.com:22 SSH-2.0-OpenSSH_7.4 # bastion.ops.dev.xxx.com:22…
hotzen
  • 123
  • 1
  • 8
0
votes
0 answers

ssh illegal option while trying to connect to remote server

trying to ssh from my macbook pro, to a remote server, ssh ayan@ServerIPAddress gives the following error ssh: illegal option -- ? usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D…
Ayan Mitra
  • 101
  • 2
0
votes
1 answer

Needs a clarification for the ssh-copy-id command

Say I have two computers connected to the same Wifi network. Let's call them computer-A & computer-B. I am using computer-A, I can ping computer-B without issues. Now, on computer-A, I have generated a new SSH key pair (but not the default id_rsa…
user842225
  • 101
  • 2
0
votes
1 answer

Install SSH key in an account that has no "usable" shell

A remote SSH server has a guest account with a known, non-blank password, that when logged in directly executes a text-based terminal game (not sure if via command, shell, or another method). The connection closes whenever the game exits, so there…
MestreLion
  • 1,593
  • 12
  • 11
0
votes
1 answer

Github Deploy Key Pattern

My Deployment Pattern I have a setup as shown in the diagram above, where have a github account which owns a number of private repositories. I have a number of machines in the field that each include some subset of the repositories that I manage.…
0
votes
0 answers

Using PasswordAuthentication yes in sshd config but password is not accepted during login

I tried to enable password authentication in CentOS 7 only for one user - auditor, by having this lines in my sshd.config (at the end of file): PubkeyAuthentication yes ChallengeResponseAuthentication no UsePAM yes Match User auditor …
0
votes
0 answers

how to use systemctl with pem file for remote commands

I am wondering an anyone tell me how to use a pem file with the systemctl command in order to be able to issue a remote command whilst logging in using the pem? I am running it on Ubuntu 22.04 systemctl -H abc@xyz -I mykey.pem status command.service…
Thomas
  • 1
  • 1
0
votes
1 answer

Cannot add passwordless private key with ssh-add on remote server

I can add a passwordless id_ed25519 file locally using ssh-add -k, but not on my remote server. Locally: ☁ ~ ssh-add -l The agent has no identities. ☁ ~ ssh-add -k ~/.ssh/id_ed25519 Identity added: ~/.ssh/id_ed25519 (app@myproduct.com) ☁ ~ …
0
votes
1 answer

back up and restore host ssh_keys using cloud init autoinstall ubuntu

I am trying to automate VM installations for ubuntu 22.04 using autoinstall,cloud-init, qcow2 and virt-install. When I am reinstalling the OS on the same qcow2 file, I have a script that is run in early-commands that checks if there already is an OS…
0
votes
0 answers

Does the jump host have access to the private key used to authenticate the target host?

Can I use ssh -J user1@host1:port1,user2@host2:port2 user3@host3 even when I don't trust the jump servers? Will the jump servers have access to my private key and be able to login and execute commands on host3? Related: Does SSH allow jump host to…
HappyFace
  • 151
  • 1
  • 9
0
votes
0 answers

Tentative of shh->rsync to wrong IP; potential security risk?

I have set up a little RPI backup 'server' (with rpi OS) on my LAN. I use it to create a backup of my main personal machine data using rsync, and I reach it from outside my network through SSH (key-based authentification; I have disabled all the…
0
votes
2 answers

After install last version on ubuntu server 22 i can`t make ssh key connect to remote server

I did all the steps to create the key as I normally do: ssh-keygen -t ed25519 next ssh-copy-id -i /home/derbauer/.ssh/id_rsa.pub -p 12122 root@192.168.80.12 here everything goes normally But in the end it asks me to enter a password again, and I…
0
votes
1 answer

SSH Permission denied (public key)

I am trying to create my own SSH key to connect from one VM A to another VM B (both are Debian/bullseye64 systems). Both VMs are configured to be on a public network using vagrant on my system with A on 192.168.0.103 and B on 192.168.0.104 I used…
Ironscar
  • 11
  • 5
0
votes
1 answer

Pull ssh key from github server

Many users have their own public ssh keys on github. Is there an easy way to get it knowing someone else's username? I know it's possible - the ubuntu installer gets the keys somehow - but I can't find a way to do it. It would be useful to create…
undefine
  • 1,046
  • 9
  • 21
0
votes
1 answer

SSH permission denied

I have problem logging using ssh to company server. I have my local ~/.ssh/config; Host target HostName xx.yy.zzz.aaa User abcd IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly=yes I have other hosts and these works so I don't suppose the…
sjiamnocna
  • 41
  • 5