Questions tagged [ssh-keys]
The ssh-keys tag has no usage guidance.
435
questions
0
votes
0
answers
14
views
Please help trying to Generate sshkey Saving key "~/.ssh/id_rsa" failed: No such file or directory
So I have done this before, but for some reason after I factory reset my computer it fails to work. I followed directions. I first created a file named it CIS117KEY. Then opened a terminal. Per my ...
0
votes
1
answer
13
views
Log in with either a password or a public key. But not both at the same time, and limit the PAM authentication to the root user
I am having difficulties configuring the ssh server. The scenario is as follows. The root user is the only one using google F2A (PAM), the restricted user only connects by password and the rest of the ...
0
votes
1
answer
28
views
SSH key does not save permanently
Everytime my laptop connect to company's wifi, and committing/fetching something, git always pops error permission denied so I have to add the ssh key. The problem is that it doesn't effect ...
1
vote
1
answer
23
views
How to debug ssh connection to remote user (when connection to root works fine)
I have an Xubuntu "Caller" and Fedora "Callee" in my garage. I'm setting them up to connect via SSH. Both are running OpenSSH, so the configurations are similar.
I can connect as ...
1
vote
2
answers
39
views
How to disable RSA and ECDSA keys in openssh-server on Fedora Linux
I read that RSA and EDCSA algorithms are inferior to Ed25519 in terms of speed and space, and for my small Beowulf cluster, I'd like to just use Ed25519. However, when I try to remove, truncate, or ...
0
votes
1
answer
19
views
SSH-Keyscan Does Not Return a Key
I am trying to retrieve the ssh key from a Cisco Switch and get the following output:
[root@localhost] ssh-keyscan -T15 172.20.10.11
# 172.20.10.11:22 SSH-2.0-Cisco-1.25
# 172.20.10.11:22 SSH-2.0-...
1
vote
1
answer
27
views
Trying to setup SSH key pair for root
Setting up SSH keys for root (technically ed25519 keys). Created the key pair on server I want to logon FROM and put the pub key onto the authorized key file of the server I want to connect TO.
I can ...
0
votes
0
answers
15
views
GIT SSH keys gets "forgotten" the next day, sometimes
We use DevOps as git repository and I use Git GUI to generate an SSH key.
I've used DevOps months without any issues, but as of recently, I've started to notice that my SSH key get's invalidated or ...
0
votes
0
answers
73
views
SFTP connection hangs on "SSH2_MSG_KEXINIT sent"
I am struggling to connect via SFTP to my AWS test account from my on-prem server.
When I cd into the directory where my private ssh-key and run sftp -v -i <private_key_file> <client>@<...
1
vote
0
answers
31
views
OpenSSH sshd.exe does not start with KexAlgorithms parameter
Running OpenSSH Server 8.1p on Windows Server 2016 DC
When I add the parameter "KexAlgorithms" in the sshd_config, the service fails to start. I want to add legacy support for key methods ...
1
vote
1
answer
39
views
How can I use a U2F hardware authenticator to unlock a SSH key in a computer I am SSH'd into?
I have a number of computers on which I've generated a ed25519-sk SSH key all using the same U2F hardware authenticator (yubikey 5C NFC). I'm now in a situation involving three computers: X, Y, and Z. ...
0
votes
2
answers
24
views
How to use OPENSSH private key to access server?
I received a private key in plain text format from someone. How do I save it to access server. It's in a format mentioned below.
-----FOR SERVER! BEGIN OPENSSH PRIVATE KEY-----
...
0
votes
1
answer
307
views
Ubuntu Connection closed by [preauth]
I have Ubuntu running on Windows (app) where I have created ssh key pair and added to Ubuntu server (Cloud) for the user.
Whenever I try to ssh from Ubuntu Sandbox (Windows) to ubuntu server (Cloud), ...
0
votes
0
answers
392
views
Need help wth error 'Permission denied (publickey,password)'
i am trying to ssh to a remote instance and i keep getting Permission denied (publickey,password) error. What is weird is that i am able to ssh into instance-01. I have pasted the verbose logs , would ...
0
votes
1
answer
24
views
Can you use a private key on another host?
I am trying to clarify if an ssh keypair is secure in the sense that it can't be copied to another computer and utilized for a remote account. I thought they were machine specific and could not be ...
1
vote
0
answers
251
views
ssh login failed with public key
I use publickey to do ssh login and failed. Here is my sshd config, sshd logs.
sshd config:
Port 1046
Protocol 2
PermitRootLogin no
ChallengeResponseAuthentication no
PasswordAuthentication no
...
0
votes
0
answers
316
views
Still requiring ssh password after setting SSH Key on github
I switched my proxy client from ssr to clash for windows for some reason. Then I got an Error prompt of DNS changing of github.com in known_hosts while using git clone.
So I deleted the item and git ...
0
votes
2
answers
33
views
ssh keys: which is for whom and where are they supposed to be?
Having read about SSH key generation and installation, I am very confused by the idea, which I might have mistakenly gathered from all of the information: it is that a private key leaves the system on ...
0
votes
0
answers
227
views
How can I connect to my SSH on DigitalOcean droplet? permission denied. (git bash Windows)
How can I connect to my droplet in DigitalOcean using the openssh to be able to install my SSL Certificate, I've already added my SSH key to the droplet and my fingerprint is there, but each time I ...
-1
votes
1
answer
301
views
Can't remove old SSH keys from connection Mac OS
Every time I connect via SSH, the agent will try non-existent keys:
debug1: Will attempt key: /Users/user/.ssh/id_rsa
debug1: Will attempt key: /Users/user/.ssh/id_dsa
debug1: Will attempt key: /...
2
votes
2
answers
5k
views
How to SSH from MacOS terminal to Ubuntu 22.04. No matching host key type found
I'm not able to login to Ubuntu 22.04 which I newly installed from MacOS terminal.
Here is the error I get while trying to SSH to ubuntu
QWERTY-M-91FL:~ qwerty$ ssh mnbv@16.67.45.123
Unable to ...
1
vote
0
answers
1k
views
Why am I getting a bad signature for RSA key error with Rysnc crontab between Linux and macOS?
I'm trying to Rsync backups into another machine on a LAN. I've copied my key over and even using SSH manually, I get the following error, which keeps my crontabs from connecting:
...
0
votes
1
answer
221
views
OpenSSH Won't Authenticate with Keypair
Problem
When I try configuring key pair authentication to OpenSSH-Server running on Ubuntu, I am still prompted for a password.
I've generated key pairs with ssh-keygen -t rsa and did not set a key ...
0
votes
0
answers
120
views
unable to get ssh key working with gpg
Following this tutorial - https://gist.github.com/mcattarinussi/834fc4b641ff4572018d0c665e5a94d3 - I have configured an authentication key in GPG and started the gpg-agent with support for ssh. ...
2
votes
0
answers
2k
views
Permission denied (publickey). On Windows Subsystem for Linux
I am new to SSH and have been looking for a solution for this for long now.
I am trying to connect to my uni's server that runs on Ubuntu from my WSL (I am using wsl2) via ssh. My Subsystem also runs ...
0
votes
0
answers
20
views
Securest way to work with a remote GitHub repo on a multiuser Linux server
I'am currently working on a multi-user Linux server where i have a non sudo user. Also I have a GitHub account where I have a private Repo. Now I want to work with this repo remotely from the Linux ...
0
votes
1
answer
30
views
ssh_config auto restored after some time
I need to connect to git using an ed25519 SSH key, but the /etc/ssh/ssh_config only has the entries below for IdentityFile, so I receive error Permission denied (publickey) when accessing the git repo:...
1
vote
1
answer
325
views
GCP SSH keys add in console gives sudo user access, how can we avoid it?
There are two answers to my questions one is here and the other one is here. None of them answers my question. In here @John Hanley suggested me to add a user and put the public key manually in .ssh/...
1
vote
2
answers
743
views
Cannot SSH to CentOS 7 even though I have the correct public key: "Permission denied (publickey)."
I am trying to setup SSH key authentication between two Linux servers: ServerA (RHEL) to SeverB (CentOS, the target). I have both files on my :
-rw-------. 1 root root 1679 May 23 14:55 ...
0
votes
0
answers
20
views
Ssh on a VM instance with different people (GCP/Linux)
I am able to ssh into a VM instance and launch scripts with cronjob
Everything works good, set up .ssh/config on local machine:
Host <host_name>
Hostname <ip_adress>
user &...
-1
votes
1
answer
444
views
Generating keypair for backend issuing JWT token
I need to generate a keypair for my backend to issue JWT token. I am using MacOS.
I tried on terminal:
ssh-keygen -t rsa
and path to /Users/john.brk/my_rsa.
It generates my_rsa and my_rsa.pub.
When ...
-3
votes
1
answer
111
views
Use ssh-keygen on windows machine and use it on linux machine
We have a scenario when we need to generate ssh key with ssh-keygen on a windows machine and copy it to linux instance:
echo -e 'y\n' | ssh-keygen -t rsa -f /tmp/temp -N '' >/dev/null 2>&1
...
1
vote
1
answer
232
views
using a known host key with a reverse-tunneled ssh gateway
I'm using reverse tunneling to provide access to an SSH server via ProxyJump, but I'm having trouble getting the client to remember the host public key. Despite indicating it "permanently added ...
0
votes
1
answer
479
views
Purpose of adding ssh identity file to ssh agent and keychain
I noticed that the Github instructions for adding an ssh key to your account say that you need to add the key to both your ~/.ssh/config file AND to the ssh agent with ssh-add
https://docs.github.com/...
4
votes
3
answers
3k
views
PowerShell ssh wont stop asking for the password to the key I installed
I'm still being asked for my key password on login from a PowerShell session (Windows 10).
These it turned out are the wrong param:
ssh -o StrictHostKeyChecking=no
or
ssh -o "...
3
votes
1
answer
2k
views
SSH with Dropbear: "Permission denied (publickey)"
I've create a RSA key pair with ssh-keygen. In /etc/dropbear-initramfs/authorized_keys I have the public key, and on my client machine I have the keypair in the /home/<name>/.ssh/ directory. ...
0
votes
0
answers
904
views
SFTP with public and private keys
I want to use private and public keys for access to the SFTP server, instead of a username/password mechanism. SFTP server should be available only for a specific user that can log in from whatever IP ...
1
vote
1
answer
3k
views
ssh commands in cron jobs on remote server
It is known that cron and ssh-agent do not communicate and hence ssh commands cannot be trivially run under cron. There are solutions involving keychain etc that make it possible to do this. However ...
0
votes
0
answers
51
views
Generate SSH keys for Windows server acting as client
I have an app, which will be run by AutoSys on Windows 2012 server. The app should send csv via SFTP to Linux server. Under which account should I generate SSH keys on the Win12 server?
0
votes
0
answers
1k
views
RSA key-pair failing for SSH connection
Password authentication works flawlessly, but I cant get the PubkeyAuthentication to work.
This is what I ran. I added the options to force Pubkey authentication since that is the one that does not ...
0
votes
0
answers
225
views
ssh keys for multiple accounts on one host
I have two accounts on a linux server and would like to have an ssh key for both of them. Do I need to make two keys, so that I can both ssh user1@server.url and ssh user2@server.url without needing ...
0
votes
1
answer
100
views
SSH into Namecheap shared host
I'm trying to connect to my Namecheap shared host server via SSH
I imported the pub/private key and authorized it like so:
Let's VM IP = 11.11.11.11
When I SSH, I kept getting
➜ Desktop ssh webedcwp@...
0
votes
0
answers
426
views
How do you successfully setup SSH so you can connect to the same host from two different clients?
There are a lot of posts about this type of stuff but I haven't been able to find an answer that works for me...
I have an SSH server setup on a Ubuntu machine at home. I was able to setup no password ...
1
vote
1
answer
2k
views
SSH connection with Putty : Server refused our key
I'm having quite a hard time with ssh keys.
To explain the context, I'm trying to ssh my VM (my computer is the client and the VM on it is the server). For now, it works using password authentication ...
0
votes
1
answer
153
views
Authenticate against AD after ssh into Windows Server
Apparently after ssh into a Windows Server with a key-file the (domain) user is logged into the machine - but not authenticated against the AD Active Directory.
So when when log4j tries to write a log-...
0
votes
1
answer
611
views
Script SCP with public key
I need to configure a script to copy some files from one Ubuntu server to another.
The key uses is allowed in the authorized_keys on remote server.
I'm trying to configure this script:
#!/bin/sh
#...
0
votes
1
answer
155
views
ssh hostbased access denied
Under Centos 7 with Selinux disabled, I can't connect through ssh with hostbased authentication.
Server side :
/etc/ssh/sshd_config :
HostbasedAuthentication yes
IgnoreUserKnownHosts yes
...
0
votes
0
answers
388
views
Windows 11 - can't create a public key with SSH-Keygen
I am trying to create a key with ssh-keygen but none of the keys is considered fitting when I try to use in GitHub (unless I am getting it wrong). Posting examples below.
This is my id_rsa file:
-----...
0
votes
1
answer
1k
views
ssh connexion : Permission denied (publickey,password)
I'm trying to connect to my server with a ssh connection, so it works when I use FileZilla but not with the command line ssh <login>@<ServerIP> -i /Volumes/ExternalDisk/key.ppk
I have this ...
0
votes
0
answers
290
views
Passwordless ssh reverse tunnel suddenly asks for password?
This has me puzzled to no end, hopefully someone can clarify.
I have a local server, LOCALSRV, and remote server (Ubuntu 20.04), REMOTESRV.
On the local server, I've established a reverse ssh tunnel, ...