Questions tagged [ssh-keys]
The ssh-keys tag has no usage guidance.
475 questions
1
vote
0
answers
33
views
SSH passwordless failing [duplicate]
I am trying to set access through SSH between nodes in a data center with keys.
All nodes share a file space so I am setting all in the ~/.ssh/ folder.
I already did:
Generated a SSH key (and stored ...
0
votes
0
answers
60
views
Mobaxterm: ssh-browser asks for unknown password
I am connecting to a server where I can connect using ssh and sftp without any trouble from the mobaxterm local session command line. I dont need a password any more because I have the ssh-keys set up ...
0
votes
0
answers
96
views
Use SFTP with FIDO2 SSH keys
Is there a windows FTP client that supports FIDO2 keys ? Since FileZilla uses PuTTY it doesn't work, and neither do WinSCP or OpenSFTP (the first two complain that the ssh key file isn't in a known ...
0
votes
0
answers
110
views
How to use SSH key with SCP only and not SSH, etc…?
I needed to script some SCP operations, so I used ssh-keygen and ssh-copy-id to allow me to run it without entering a password every time.
However, SSH now works without a password, too: I can just ...
5
votes
1
answer
1k
views
ssh-keygen fails to read key generated by itself
Using OpenSSH_8.9p1 Ubuntu-3ubuntu0.7 on WSL, ssh-keygen refuses a key it previously generated, outputting error:
do_convert_from_ssh2: parse key: invalid format
Reproduction
$ cd /tmp/...
1
vote
1
answer
382
views
macOS keeps asking my ssh passphrase with git remote since I updated to Sonoma
Referencing this similar issue, which had good suggestions:
macOS keeps asking my ssh passphrase since I updated to Sierra
but this solution isn't working for Sonoma, and using git on a server. Used ...
0
votes
0
answers
125
views
How to setup ssh-agent to persist keys after closing remote connection for use in cron jobs?
I have several cron jobs that require password protected ssh keys. The jobs run each morning and are consistently failing due to the agent not keeping the keys alive after disconnecting from the ...
1
vote
1
answer
181
views
What exactly triggers the following SSHD warning, suspected IP change?
I have connected via SSH to the server before (using name, not IP).
What exactly triggers the following SSHD message:
Warning: Permanently added the ECDSA host key for IP address
'[xx.xx.xx.xx]:23' ...
1
vote
1
answer
76
views
why is ssh-key only used on one system
I had to copy manually my ssh key from a windows system to a headless ubuntu server using scp (because ssh-copy-id isn't a basic command on windows), and I've desactivated password authentication.
...
0
votes
0
answers
53
views
ssh key and firewall blocked zone
i added ssh key from servera to serverb
[production5@servera ~]$ ssh-copy-id production5@serverb
and i added servera to blocked firewalld zone in serverb.
firewall-cmd --add-source=172.25.250.10/32 \...
0
votes
0
answers
117
views
setting up ssh between two windows machines - permission denied
I am trying to establish ssh connection between two Windows machines. Here are things I did:
I installed OpenSSH on both machines, generated the ssh keys and placed the public key on the host machine ...
0
votes
1
answer
327
views
Long time SSH key to github stops working, and now github tests welcome me as org_name/other_project
A ssh key that had once worked with Github stopped working and nothing I did would fix it. All Git requests would die with the standard git: fatal: Could not read from remote repository
In github, I ...
1
vote
0
answers
86
views
Why does FileZilla start its own ssh-agent process?
Why does FileZilla start its own ssh-agent process? When I open my terminal, an ssh-agent gets created with socket location /var/folders/sm/4bt9kz951dg4s5kq1jwy57tc0000gn/T//ssh-nWola5Puaw6o/agent....
3
votes
2
answers
3k
views
How to convert OpenSSH ED25519 private key to the OpenSSH format that MySQL Workbench uses?
My OpenSSH ED25519 private key file has the following structure:
-----BEGIN OPENSSH PRIVATE KEY-----
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
1
vote
0
answers
51
views
Is it possible to display "visual client keys" in the sshd log?
I found recently that the ssh VisualHostKey setting is very useful for server "users" to determine that their host is the correct host, but is there a way to log the "visual key" (...
2
votes
0
answers
120
views
Why is the key pair generated on the iOS switch [SSH server], not on the client?
I've been going through book CCNA 200-301 Official Cert Guide, Volume 1, as I'm learning for the CCNA exam:
CCNA_200-301_Official_Cert_Guide/Odom,_Wendell_-_CCNA_200-301_Official_Cert_Guide,_Volume_1....
0
votes
0
answers
84
views
Private ssh key deleted itself after attempted migration
I'm migrating to a new laptop for work (Mac -> Mac, both on Sonoma). To migrate my ssh keys I made a tarball of my ~/.ssh directory and copied it over to the new machine.
I went to ssh to one of my ...
0
votes
1
answer
1k
views
ssh using private key fails: server accepts key, still getting return packet type 51: access denied (public key)
People in my organization connects to their GitHub repo over ssh key. Recently, some people are getting :permission denied (public key)
The issue is not only with GitHub, they are not able to connect ...
1
vote
0
answers
431
views
How to add SSH key to Gitlab-ce in Docker
I am running Gitlab-ce V16.5.1 in a docker container. I need to add a proper SSH key to my profile in order to use HTTPS/SSH and to enable my pipelines to complete without generating HTTP Basic Access ...
2
votes
0
answers
2k
views
Secure Windows SSH Key with Windows Hello / TPM
I want to secure my Windows SSH Key with Windows Hello (my fingerprint / TPM) instead of a simple passphrase.
I found that OpenSSH can do this since v8.9 ( https://man.openbsd.org/ssh-keygen#...
1
vote
1
answer
460
views
Could Far/NetBox use ssh-2?
When I'm trying to connect with shh key to a host without ssh-rsa supporting through Far (NetBox plugin) I got the error in the journal at the host:
userauth_pubkey: key type **ssh-rsa** not in ...
0
votes
1
answer
2k
views
How to view an encrypted private key file?
I have a private key file generated and encrypted by ssh-keygen. Is there a way to directly open to view the file when I have the pass phrase? Or is the only method to use ssh-keygen -p to undo the ...
1
vote
1
answer
2k
views
ssh keys issue & how to mounts as readonly in devcontainer.json?
i have windows as the host, working with devcontainer without wsl, created ssh key with custom name, let say id_github. and managed to set ssh-agent auto run, and can use git fetch with ssh key with ...
0
votes
2
answers
284
views
Recover the IP address of a remote machine knowing its hostname + ip address of the network + sshkey registered
I want to remotely ssh a computed administered by only me. The machine is always on a fixed IP (network; I do not know the technical name for that). To ssh I use ssh [machine_name]@[machine_addr] (...
0
votes
1
answer
212
views
sshd_config seems to ignore AuthorizedKeysFile directive
I wan to stop users using ssh-copy-id to a server
In my sshd_config I have set
AuthorizedKeysFile /etc/ssh/global_authorized_keys
I confirm it has been read by sshd -T | grep -i authorizedkey
...
3
votes
2
answers
4k
views
Yubikey ssh authentication fails with "signing failed for ECDSA-SK"
I have a Yubikey (Security Key NFC by Yubico) that I'm trying to set up on a Linux machine for SSH authentication in Discoverable keys mode. I've followed this tutorial and created the keys with
ssh-...
1
vote
1
answer
1k
views
Cannot restart SSH after adding host entry in sshd_config
What am I doing wrong?
I added within /etc/ssh/sshd_config:
Host myserver
HostName xxx.xxx.xxx.xxx
User myuser
Port 22
When I try to restart sshd, I receive error:
$ sudo systemctl ...
0
votes
1
answer
2k
views
Unable to connect to server as root via ssh
I want to use remote explorer in VS Code on Windows to access a server from Ubuntu.
Entering a password all the time is annoying, so I tried generating an ssh key using ssh-keygen. The key works fine ...
-2
votes
1
answer
183
views
Passwordless SSH - no luck
Need to get passwordless SSH access from my Macbook (client) to Ubuntu 22.04 server (server).
ssh_config on client and sshd_config on server remains original
All steps made on client:
Create key (no ...
4
votes
1
answer
2k
views
Do I need two ssh keys for one account with two emails (work and personal)?
Here's my situation:
I have one GitHub account. It was always my personal account, with my personal email. Recently my company switched to GitHub and I decided to use the same account (it was allowed, ...
0
votes
0
answers
684
views
Converting putty private key to openssh format causing Invalid key length failure
I've a putty generated keypair file from which I try to save the private key in openssh format with:
puttygen -O private-openssh privat.ppk -o privat.pem
But when I try to use the private key for ...
0
votes
1
answer
194
views
How to securely permission SSH keys on my mac so they require sudo access to both use and copy
I would like to set the permissions/owner settings for the SSH keys so they require sudo access to both use and copy. This would just be an additional security step if someone were to steal my laptop ...
3
votes
1
answer
4k
views
how to move ssh-key related files to another directory?
i've been trying to clean up my root directory so that it isn't clustered with random dotfiles. nonetheless, on setting up the ssh-key i came to a dead-end, where i wouldn't find a way to migrate ...
0
votes
1
answer
286
views
What do ssh-keygen flags -N "" -q do?
I am following the tutorial where OP creates ssh keypair for guest VM login as ubuntu
ssh-keygen -t rsa -b 4096 -f id_rsa -C mycurrentfolder -N "" -q
what -N "" -q is really doing?...
2
votes
1
answer
583
views
PEM formatted SSH cert with RFC 4716 format keys
I am trying to get a ssh cert for sftp setup with 3rd party vendor in pem format and should be SSH2, using RSA algo with the Key lengths of 2048.
Do the below steps make some sense (Please correct me ...
0
votes
1
answer
1k
views
Why does SFTP prompt for a password when trying to connect to azure storage that should only accept RSA keys?
When I try to make an SFTP connection to an azure storage account using RSA keys azure still prompts me for a password. This problem occurs only on my laptop which is running Ubuntu 22.04.02 LTS on ...
2
votes
0
answers
118
views
use rsync with autossh
I'm trying to use rsync with autossh on my laptop, so it can also work when internet connection is less reliable, but it doesn't really do as I'd like it to do.
The starting point is that I have an ...
0
votes
1
answer
3k
views
MobaXterm issue using Private Key for SSH access to Linux server (from Win11 workstation): "bin" folder is open in another program
Issue seemed to start after adding my private key for the SSH session:
SSH pub key (rsa_id.pub) does not work with MobaXterm but works with PowerShell and other apps
This happens whenever I start ...
0
votes
1
answer
8k
views
SSH pub key (rsa_id.pub) does not work with MobaXterm but works with PowerShell and other apps
I used PowerShell to create a SSH key like so:
ssh-keygen.exe
# Enter to accept all default + blank PW
# Saved in C:\users\me\.ssh\id_rsa.pub
I can SSH to my server via PowerShell and it works as ...
0
votes
1
answer
162
views
Unknown reason why cannot get ssh access via public keys anymore
Server 1 -> Centos 7.
Server 2 -> AlmaLinux 9.
By mistake I
rsync -e “ssh…” /dir1/ user2@domain2:/home/user2/dir2/
instead of
rsync -e “ssh…” /dir1 user2@domain2:/home/user2/dir2/
The final ...
5
votes
2
answers
45k
views
How to generate rsa-sha2-256 keys using ssh-keygen utility?
I want to generate rsa-sha2-256 ssh key pair using ssh-keygen utility. Can you please share the command for the same?
For ssh-rsa, it's ssh-keygen -t rsa
0
votes
0
answers
2k
views
Why am we still getting "Provided host key does not match remote server's fingerprint." in Netsuite when the host key sent matches that of the host?
We are encountering an error in Netsuite where despite the host key being inputted in Netsuite matching that of the server we're connecting to, Netsuite continues to error that the:
"Provided ...
1
vote
0
answers
420
views
SSH into windows 10 pc with Termux using keypair
So i want to SSH into my windows 10 pc via termux
On server windoes 10 pc:
1.)installed OpenSSH using optional windows features.
2.)enabled the respective services
On client termux app:
-generated ...
0
votes
0
answers
99
views
Windows SSH-Server is only reading first line from "authorized_keys" file
I am trying to SSH from Ubuntu(WSL) to Windows but the OpenSSH-Server on Windows seems to be reading only the first line of authorized_keys file.
When I put the SSH-Key I use to SSH from Ubuntu to ...
0
votes
1
answer
592
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
2k
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
244
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 ...
2
votes
3
answers
5k
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 ...
1
vote
1
answer
3k
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
241
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 ...