Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ssh-keys]

The tag has no usage guidance.

0
votes
0answers
26 views

Automatically load SSH key on Windows startup

The software context here is Windows 10 + Git for Windows, which comes with a lot of extra tools, some of which I mention below. I have several private repositories on BitBucket. In order to to avoid ...
0
votes
1answer
44 views

No supported authentication methods available [preauth]

I have a problem with logging using public key genereted with puttygen. My /var/log/auth.log says No supported authentication methods available [preauth] When attempting to connect using putty I ...
0
votes
1answer
43 views

SSH connection to Gitlab is getting timeout

I've followed the official Gitlab docs (https://docs.gitlab.com/ee/ssh/) to make my keys using the comand: ssh-keygen -t ed25519 -C "email@example.com" But I'm getting timeout error as you can see ...
0
votes
1answer
35 views

limit sftp access to specific folders when using a public/private key with openssh

Is it possible to limit what folders a user can sftp to when using public/private keys? Say I have a server with user1 and their home folder is /home/user1. I already have it configured so user1 can ...
1
vote
1answer
88 views

ssh authentication failure with public/private keys

I'm setting up a Continuous Deployment pipeline on gitlab. Unfortunately, when trying to ssh from the pipeline to the target server, the authentication fails. I am asking the question here because I ...
1
vote
1answer
66 views

Unable to load private key file .ppk (file format error)

I generated an Ed25519 key pair with puttygen, and saved the private key on my computer. When I try to authenticate with it, I get Unable to load private key file "my_private_key.ppk" (file format ...
0
votes
1answer
22 views

Get SSH authentication data after key authentication

Is it possible, from the server side to retrieve data used in the key authentication after this is completed? For example, from a pam module, to get the public key used, the challenge used (if it was ...
2
votes
1answer
17 views

SSH server checking public keys from another source

In an ssh connection with key authentication the user sends the ID of the public key he wants to use. Then, the server checks the authorized_keys file for the publick key. I'd like the server to not ...
1
vote
1answer
35 views

I've generated a public key: 2976 bits …?

I have generated a public key via ssh-keygen -f foo. The key inside the file foo.pub is AAAAB3NzaC1yc2EAAAADAQABAAABAQDaJ1UGxfjTCzuVNvgjOyK/NF5KFDO2qUREGd9PBB+zJotS85XO9hQjq5XhdekXHfhCM/h3AeGW/xH+...
1
vote
1answer
34 views

SSH host key changed just after setting root password

This might sound super suspicious, but it just happened to me: I run a rented Raspberry Pi as my own mail server and today I set a root password to eventually login as root directly. I did not yet ...
0
votes
0answers
14 views

Google Compute Engine SSH - different username after switching to OS Login [duplicate]

I created a Compute Engine VM (Ubuntu 18.04), and when I log into it using the SSH button in the VM instances list I'm logged in as user username. After a while, I realised I needed to be able to use ...
0
votes
2answers
169 views

Get the fingerprint of an existing SSH public key

This Question asks about getting the fingerprint of a SSH key while generating the new key with ssh-keygen. But how does one get determine the fingerprint of an existing public key in a .pub file? ...
0
votes
0answers
15 views

Ubuntu ssh-copy-id using an existing private key?

I know the easiest way is to ssh using an existing account into target and add the public key of another user account into .ssh/authorized_keys. Is it possible to do this using ssh-copy-id? ...
0
votes
1answer
78 views

Azure VM --generate-ssh-keys, no passphrase

I've created an Azure Ubuntu VM, using azure cli with the following command: az vm create \ --resource-group rgName \ --name vmName-$RANDOM \ --image UbuntuLTS \ --admin-username ...
1
vote
0answers
20 views

Tightly Couple SSH keys with a single Machine

I do have a ssh private key in my dev machine through which I can ssh into my production server. One security problem is that I can copy this ssh private key to any personal machine or say some ...
1
vote
1answer
50 views

SSH agent forwarding mixed with su user -

If I ssh to my server as such: ssh root@<ip> -A Then I do this remotely: ssh git@github.com # Hi username! You've successfully authenticated Then this remotely: su user - Then this ...
0
votes
0answers
9 views

AWS EC2 instance connection timedout, two instances under same security group, one connect other one dont

Hi could anyone please help, i am running two Ec2 instances under same security group, both were running ok, i just installed jenkins, docker on one instance and ran command ufw allow 8080 in one ...
0
votes
0answers
141 views

SSH connection to port 22 is refused/timed out. Can't install key to server

I have been having issues with connecting to my ssh server. After installing ssh and other server packages I have been trying to connect as a root user. Each time it says the connection timed out. I ...
0
votes
0answers
119 views

SSH Server refused public-key signature despite accepting key

I did the following on a Windows Server 2008 R2: Installed OpenSSH 0.0.24.0 by executing this command -> powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 and generated the keys with ...
1
vote
3answers
32 views

Trying to set up SSH keys, but instructions aren't clear

Every SSH tutorial or explanation I find seems to forget right in the middle that there are two computers or servers involved. I am trying to create a website hosted on a remote server. I generated ...
0
votes
1answer
92 views

How to compute GitLab deploy key fingerprint from ssh key-pair

When viewing Deploy Keys in a GitLab repository's setting, the keys have a "name" and also some kind of fingerprint. The fingerprint looks like this: 2b:be:a7:7f:44:64:89:8d:e3:f7:ea:3c:12:c9:e5:e7 ...
0
votes
0answers
35 views

How to generate SSH keys for gitlab.com hosted project?

I have a project hosted as private repository on gitlab.com. I want to use gitlab ci/cd to automatically deploy my project to remote server QA_SERVER when code is pushed to master branch. Below is the ...
0
votes
1answer
28 views

How to use public private keys in connecting with multiple servers?

Assume I have 4 servers A, B, C and Z and my desktop is MacBox and there is another developer Adam. I have already generated public private key pairs in my MacBox and copied public key to A so that ...
2
votes
1answer
52 views

Running bash script from an user of the same group that connects to a server using SSH-key from another user of the same group

I made a script like this one: sync.sh #!/bin/bash #1st backup the file scp user-1@ip-1:/directory/file1 /backup/location/ #2nd sync/overwrite my file to that server scp /local/file2 user-1@ip-1:/...
1
vote
1answer
80 views

How to use ssh on cpanel server? [closed]

I want to entry to my cpanel server, but I can't do it. This is what I did. I am going to the login page of my server on cpanel and I got in. Then: Security -> SSH Access -> Manage SSH Key -> ...
0
votes
1answer
57 views

SSH key management in big and mixed environments (Linux) [closed]

In every company I worked at it was always pain in the ass to manage ssh keys. We had different ways of managing them. But mostly it were some CM systems like puppet/chef/ansible or just manual copy ...
0
votes
1answer
35 views

SSH between N number of servers

I have n number of servers like c0001.test.cloud.com, c0002.test.cloud.com, c0003.test.cloud.com and I want to do the ssh between these servers like: from Server: c0001 do the ssh to c0002 and then ...
0
votes
1answer
35 views

Using SSH authorized keys to roll out privileged file update across a LAN?

I've got a server that from time to time automatically updates a set of privileged files (eg, certificate keys, configs etc). It needs to save those files on other systems on the LAN. I know roughly ...
0
votes
1answer
74 views

ssh key with password is more secure or without password? [closed]

I have a question about ssh key, I want to know if is better to set password for ssh key or not? which one is more secure?
0
votes
1answer
1k views

SSH Permission denied (publickey) - fail at preauth step

i tired different solution found internet to resolve that issue with no luck: Correct permissions for keys at /etc/ssh/, 400 for private rsa key and 600 for public rsa key. 700 for /home/usersrv/....
0
votes
0answers
272 views

Error: Disconnected: No supported authentication methods available (server sent: publickey) on mac using filezilla

first I'll point out that I do not have much experience using SFTP to connect to a server and using public and private keys. So please, answer assuming that I know nothing about what you're talking ...
1
vote
1answer
401 views

ssh command from Windows to Mac: permission denied

Objective I want to access to my local Mac computer (version: High Sierra 10.13.5) from my Windows computer (Windows 10). The purpose is for automation, to remove the password authentication and add ...
0
votes
2answers
65 views

Migrating ssh keys to new user for same host access?

I found quite a few posts about migrating ssh keys to a new host, but couldn't find much about migrating from one user to another on the same host... We are migrating a NAS share to a new platform, ...
0
votes
2answers
49 views

Deactivating PEM Files

To this time, I could not find this question on somewhere else. If there is one, please let me know. One of my old employee got used to use a pem file we generated (Idk when) to login in our freebsd ...
-1
votes
1answer
291 views

Setup an existing Digital Ocean Droplet to use my ssh key

I have created a public and private key so that I can SSH into my Digital Ocean droplet. However I created the droplet before I created my key so this walk through stops helping me mid way through. ...
2
votes
0answers
854 views

Ssh load key error: invalid format

After one of the recent Windows 10 updates on my laptop I'm getting ssh error in Cmder and Hyper: Load key "C:\\Users\\user/.ssh/id_rsa": invalid format It worked OK before that. To fix it I've ...
4
votes
2answers
316 views

OpenSSH - Any way to keep strict host key checking but check only the key and ignore server's name?

Question Is there a way I can keep the strict host key checking behavior on but have it check only the server's key fingerprint (which is effectively already a unique identity for the host), without ...
2
votes
1answer
236 views

ssh-copy-id to a tcsh on Solaris?

Im trying to copy a public key to the ~/.ssh/authorized_keys file on a Solaris server. It fails with this error message: $ ssh-copy-id -i ~/.ssh/id_rsa.pub <USER>@<HOST> /usr/bin/ssh-copy-...
1
vote
1answer
1k views

Stream video on VLC Player over sftp with ssh key authorization

So I know that I can stream media to VLC using sftp, however my server uses ssh-key authorization and not username/password. Is there any way to allow VLC to use my private ssh key to connect to my ...
0
votes
1answer
29 views

SSH key across multiple machines with SSH chaining

I would like to be able to ssh across mutiple machines using the -A flag on ssh like: ssh -A user@hostB ssh -A user@hostC This works fine in scenarios where I have SSH keys allowing me to go from my ...
1
vote
1answer
1k views

How to add more exchange algorithms to Putty SSH session?

I have a device that accept the following exchange algorithms for SSH connections: curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha256,kexguess2@matt.ucc.asn.au I ...
0
votes
1answer
96 views

ssh private & publc key questions

Hello I'm working on switching all my keys to ed25519. I've ran this command: ssh-keygen -t ed25519 -C "user on server" now it generates a private key and a public key. I copy the public key into ...
0
votes
1answer
159 views

Can't install puttygen (tool for generating ssh key in .ppk format)

Here is what I have tried, I have installed putty: root@kali:~# putty (putty:2859): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar (putty:2859):...
1
vote
0answers
702 views

Windows 10 is saying a valid key “id_rsa” is using invalid format

I brought a pair of keys from a linux debian machine which is working fine. But, when I tried it on a windows 10 machine using ssh service by power shell it is not working, the error message starts ...
0
votes
0answers
131 views

error mounting remote directory on Mac using sshfs and public key file

I'm currently running 10.13.3 (High Sierra). Ultimately, I'm trying to automount a directory on my web host's server using sshfs using this guide. I have generated a shared key and can ssh to the ...
0
votes
1answer
55 views

How do I get ssh to use only one key from ssh-agent?

I need to use two different ssh keys when connecting to the same host. The machine I need to use to connect (because of ip address restrictions) is not the machine where the ssh keys are stored, so I ...
6
votes
2answers
1k views

Read Only access to GitHub repo via SSH key

I want to generate an SSH key with only READ permissions to be used with my GitHub account is it possible? or should I create another account with only read permission?
1
vote
1answer
244 views

SSH between multiple Vagrant VMs

I am trying to install a local 3 node cluster of HP Vertica. The Vertica install uses SSH to install the DB Server software onto each node when triggered from any one of the nodes. I get an error ...
0
votes
1answer
20 views

Mac SSH is looking in wrong location for key

I'm trying to install some private github dependencies, but I'm getting this error: npm ERR! fatal: cannot run ssh -i /home/user/id_rsa: No such file or directory npm ERR! fatal: unable to fork My ...
0
votes
2answers
160 views

raspbian SSH access refused from windows

I have Raspbian installed on Raspberry 3, I am trying to access it with SSH keys. I have generated Public and Private key, the Public_Key is inside Raspbian's file ~/.ssh/authorize_keys The file ...