All Questions
Tagged with ssh-keys public-key
48
questions
0
votes
0
answers
40
views
Can not SSH to GUI Ubuntu on Login Screen
I have a laptop with Ubuntu installed, and I've set up SSH using a key, and everything was working fine (I could SSH into the laptop from another computer).
Then, I rebooted the laptop, and on the ...
-2
votes
2
answers
58
views
the theory of SSH public and Private key and its application in realworld machines [closed]
there.
In this question, I have a very specific one about public and private keys. So Public keys should be put on the opposite side. For example, if we have a server, the public key of the server ...
0
votes
0
answers
120
views
Linux server ssh connection wont authenticate my account using ssh key gen and prompts me for password
I am facing an issue in Ubuntu 22.04.2. where I am unable to SSH into a remote server using a copied public key. I have generated an SSH key pair on my local machine using a bash terminal, and I have ...
0
votes
1
answer
450
views
Permission denied (publickey) error when managing GCP machine via Ansible (running on GCP VM) despite successful SSH connection
I deployed two machines to GCP via Terraform. Let's call them control-host and target-host. I want to manage the target-host via Ansible installed on the control-host.
Unfortunately, I keep getting ...
11
votes
2
answers
4k
views
ssh how to allow a very limited user with no home to login with pubkey
I have a very restricted user in my ssh server created with --no-create-home and --shell /bin/false.
I know I can define authorized_keys file in sshd_configs for the user's public key. But how can I ...
1
vote
0
answers
695
views
Connection closed by remote host when copying client public key to sftp server
I want to copy the client public keys for a container to a remote sftp server and after that attempt do some uploads to the server via bash script(the bash script will be invoked when the container ...
-2
votes
1
answer
45
views
Management of password disable server
This question is just for curiosity. I am studying a bit of server administration and have seen many people saying that having passwords is a bad idea and they should be disabled. But my question is: ...
0
votes
2
answers
2k
views
Local GitLab Not Accepting SSH Key
I checked out this post, but it seems like it was written for OSX and/or Windows, and I'm not really sure how to apply it to my situation:
GitLab Not Working With SSH-Keys
I set up my GitLab instance ...
0
votes
0
answers
604
views
ssh public key auth fails for private git server
I want to git push from a local debian 10 user to my server (debian 10) where I have set up a git server under the username git using ssh public key auth. The problem is: it still asks for the ...
2
votes
1
answer
23k
views
Correct configuration of the SSHD config file?
I'm using ssh on my linux box, I want to secure it to be as watertight as possible, only allowing ssh via ed25519 elliptic curve crypto sigs.
I thought I had it setup correctly, disabling password, ...
0
votes
1
answer
470
views
Deploy Public Key in Windows Server
I have a Windows server in AWS and I want to deploy a public key to connect sftp authentication by key file.
I use freeftpd to reach my sftp connection but the program do not support key ...
1
vote
1
answer
167
views
RSA key pair is not allowing me to authenticate to my backup server [closed]
I have a server that authenticates SSH through RSA key pairs. Yesterday my rsync backup worked successfully I know this because of log files:
/var/log/backups_log$ ls -l
total 815536
-rw-r--r-- 1 ...
0
votes
0
answers
185
views
sshd: save the client's public key
Today we needed to sFTP to a remote server. The remote server administrators didn't want us to send them the user's public key; instead, they asked the user to perform an initial connection, that was ...
3
votes
1
answer
452
views
Verify authenticity of SSH host on Digital Ocean droplet (FreeBSD)
When first connecting via SSH with keys to a newly minted Digital Ocean droplet VM running FreeBSD (per this tutorial), we get a message about “The authenticity of host blah-blah can’t be established”....
0
votes
1
answer
2k
views
Lost connection with ssh server through web console ssh (GCP, Putty, gcloud terminal, Filezilla)
After a year using the VM instance in debian, we changed the ssh keys to connect to other computers, after having generated the pair of public and private keys with putty, and adding it to the ...
0
votes
2
answers
347
views
SSH Public Key Management for a small team
I'm setting up a deep-learning workstation in my college's lab. It's running Ubuntu Server 16.04 and I set up a SSH server in it, to control it remotely.
My task now is to make it available for my ...
0
votes
2
answers
5k
views
How to tell SFTP which public key to use?
SFTP has an option "-i" to set the private key to use for public key authentication. However, there does not appear to be an option for which matching public key to use. Surely it must need this to ...
-1
votes
3
answers
2k
views
Linux + how to run the ssh-keygen interactive from bash script [closed]
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 ...
2
votes
0
answers
15k
views
requirement "uid >= 1000" not met by user "root" in CentOS
I have a server with CentOS. Am trying to configure and connect to the server using a Public SSH-Key, I configured all: user, user folder, .ssh, etc.
Now, trying to connect I get this error in the ...
0
votes
0
answers
3k
views
OS X ssh to linux - permission denied (publickey)
Something strange with OS X SSH client while connecting to some Linux boxes.
Now I'm trying to connect from my mac to remote Debian running in qemu behind the router. Unsuccessfully :(
But if I'll try ...
6
votes
1
answer
2k
views
What is the good practice for adding known keys/fingerprints to known_hosts
There are plenty of answers to questions similar to this one but I can't seem to find one with a clear answer. They all either grab the public key at least once, ignore the key altogether, or write ...
0
votes
1
answer
101
views
How to avoid asking password when logging via SSH Key?
I have this scenario:
I login to dns1 with key and same with dns2. Suddenly for each of the keys I used it started to ask me server password, this was never happening in past, and I did no changes on ...
0
votes
1
answer
1k
views
Access with ssh only password without publickey with virtualbox
I tried to setup the ssh-server without publickey ,
with openssh-server 6.7p1-5
changed sshd_config
RSAAuthentication no
PubkeyAuthentication no
PasswordAuthentication yes
Restart ssh service
from ...
4
votes
1
answer
3k
views
Why won't my SSH keys forward properly?
I'm trying to ssh from my machine to another machine and from there to a third machine. When I do it manually, it works like this:
localhost$ scp ~/.ssh/id_rsa [email protected]:.
...
4
votes
1
answer
889
views
How many SSH private key to setup for multiple servers?
The general process is to generate a pair of public and private keys and upload the public key to the server for SSH connection.
Then, if I have to manage a large amount of servers, am I supposed to:
...
0
votes
1
answer
48
views
SSH: Login to local pc by key
I got a little problem.
I'm using apt-dater to keep different linux-systems updated.
Apt-dater uses ssh to login to these systems - there's no problem by doing this.
To connect to localhost, the ...
3
votes
2
answers
559
views
sshd: logging client's public key
I need to run an SSH server and log the IP & public key of any client that attempts to connect (without actually granting access).
The use case is this: I deploy this web app to a remote host ...
22
votes
1
answer
13k
views
ssh command line specify server host key fingerprint
Using ssh command line (OpenSSH), can I specify the server's host key fingerprint?
This is possible with winscp.com using (e.g.) -hostkey="ssh-rsa 2048 AA:BB:CC...etc
I have read the man page a ...
-2
votes
2
answers
362
views
SSH using ssh_key from a different account
Is there a way for a user to ssh as a different user using ssh_keys? For example, i have host A B and C.
User X SSHes from A to B as himself ( A -- as X --> B )
Now the user wants to SSH to C from ...
-3
votes
3
answers
4k
views
Public Key authentication fails while using the -i parameter on ssh command
I have to do public key based authentication on two Linux servers.
Machine 2 (192.168.3.132)
username: vfx_30
home dir: /home/vfx_30
ssh keys:
/home/vfx_30/.ssh/id_rsa
/home/vfx_30/.ssh/id_rsa.pub
...
3
votes
1
answer
2k
views
How to set up Git on remote instance using keys from local machine?
I have a setup where I can ssh into my remote server (ie a Google Compute instance) from my local machine. I used to be able to clone, push, and pull from a repository on my remote instance without ...
4
votes
2
answers
20k
views
SSH key and ip address
A co-worker keeps mentioning SSH keys being associates with an IP address but Im not sure what it exactly means. So i tried generating a SSH key and it had my host name at the end of the file. This ...
14
votes
1
answer
7k
views
User@host in a SSH-RSA public key
What role does the user@host that often appears at the end of a public ssh-rsa key play? Is it necessary? Does if serve any purpose in the authentication, or is it simply a record of who and where ...
2
votes
0
answers
1k
views
Linux TACACS+ auth for SSH but allow users to use public key auth
we have running tacacs environment for centralised login to our routers, firewalls etc and even most of our linux boxes to ssh
what we would like to do is allow users to authenticate to SSH via ...
8
votes
2
answers
28k
views
Setup public key authorized SSH for non-root users
I was able to setup ssh login using public keys for root users and tried to apply the same logic for non-root users. I have tried to troubleshoot this issue in vain. I am using centos for both my ...
1
vote
2
answers
3k
views
Best current authentication cipher for SSH2? Are certain ones only allowed/not allowed? How to tell what cipher an existing key is?
I am a linux newbie. I plan on generally using OpenSSH
I have spent a number of hours & I can't seem too quickly find the answer
I have briefly read some on IETF, however I will be honest its WAY ...
0
votes
1
answer
3k
views
ubuntu - public-key for authentication
I have a master and slave cluster. I am setting up cloudera manager.
On the master I created a passwordless key using the following.
ssh-keygen -f id_rsa -t rsa -N ''
eval `ssh-agent`
ssh-add ~/....
0
votes
1
answer
9k
views
SSH Public Key Authentication not working with PuTTY
I have created a virtual machine and installed Redhat 6. I am having issues connecting using public key authentication.
I can use PuTTY on my Windows host to connect to the redhat guest, where I am ...
3
votes
4
answers
17k
views
Key-Based SSH Permission denied (publickey) Ubuntu 12-04
I have configured sshd to accept key-based ssh logins with LogLevel on DEBUG, and uploaded my public key to ~/.ssh.authorized_keys, where permissions are set as:
700 ~/.ssh
600 ~/.ssh/authorized_keys
...
1
vote
1
answer
1k
views
Problems accessing EC2 instance with SSH key pair
Just set up a new EC2 instance, downloaded the pem file and currently cannot get into the box. I'm using the command...
$ ssh -i .ssh/key.pem ubuntu@ec2-176-34-183-***.eu-west-1.compute.amazonaws.com
...
22
votes
5
answers
84k
views
SSH Public Key Format
I have a public key in the format:
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "somename-20060227"
AAAAB3NzaC1yc2EAAAABJQAAAIBmhLUTJiP[and so on]==
---- END SSH2 PUBLIC KEY ----
Usually I see keys in ...
2
votes
1
answer
425
views
SSH host key changed - except it actually hasn't
I've just tried to SSH in to a server that I've been doing so without problems for a while, and received a warning that the server's host key has changed.
But it hasn't!
On the server, I've checked ...
1
vote
1
answer
8k
views
How to make ssh connection between servers using public-key authentication
I am setting up a continuos integration(CI) server and a test web server. I would like that CI server would access web server with public key authentication. In the web server I have created an user ...
44
votes
1
answer
43k
views
What is the meaning of an equal sign = or == at the end of a SSH public key?
I just noticed that most of the ssh pubkeys in my authorized_keys end on == or =
E.g.
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA9ZUwxXn2HZAAUswoaV8t2sQPvolVWDI053f0giNN154Zyi9FtWJKvyLHXoxW4IzFxgx+m6EYqXG/...
1
vote
2
answers
627
views
Public key authentication - SSH asks for passphrase after rebooting local machine?
I created a public/private key pair on a local machine using ssh-keygen. I entered a passphrase. I then used ssh-id-copy to put the public key on the remote machine.
When I ssh into the remote ...
8
votes
2
answers
11k
views
What is a good and safe way of sharing ssh-keypairs?
I have a few key-pairs, that are used as authentication, to ssh into my servers on the Amazon cloud. I rotate those certificates weekly, manually. My question is, I need to share the certificates with ...
2
votes
4
answers
42k
views
SSH configuration, publickeys, Permission denied (publickey,password). error
My task: login from Mac OS Snow Leopard client to Ubuntu 10.10 server without password.
Commands:
client$ mkdir ~/.ssh
client$ chmod 700 ~/.ssh
client$ ssh-keygen -q -f ~/.ssh/id_rsa -t rsa
Enter ...
26
votes
8
answers
32k
views
A system for distributing SSH public keys
We have many different systems that are managed by several people. We have chosen to use SSH public key authentication to access those systems. This works great, as there is no need to manage or share ...