All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
270 views

How can I share the SSH keyes between two users on a CentOs 7 machine?

I am not a sysadmin\network specialist (I am s software developer) and I am finding the following difficulty working on a Linux CentOS 7 remote machine of a customer. I am using MobaxTerm to connect ...
AndreaNobili's user avatar
0 votes
1 answer
549 views

centos 8 ssh remote server asking password despite PubkeyAuthentication yes

I am trying to connect remote host from client computer without password (with password works perfectly) On client computer I did following but when I try to connect ssh, still asking password. anyone ...
danone's user avatar
  • 166
2 votes
1 answer
222 views

How can I use different ssh keys for user1@host and user2@host, without resorting to aliased hostnames?

I have a remote CentOS server, lets pretend it's called hostname.com hostname.com has several user accounts, and I want to ssh into this server as any one of these users (using ssh keys rather than ...
carpii's user avatar
  • 541
1 vote
1 answer
3k views

Can't SSH into Google Cloud Compute instance using OS Login after `dnf upgrade`

I have a Google Cloud Platform Compute instance running CentOS 7. It has been working just fine, where I can use it with the web-based SSH interface without any problem. Recently, I switched to "OS ...
DarthFloopy's user avatar
0 votes
1 answer
90 views

authselect vs ssh key in a tiny network

I am trying to setup a tiny LAN (2 - 3 Linux computers) with a wifi router and CentOS 8. Does authselect provide any security benefit over ssh keys? Thanks.
Duh Huh's user avatar
-1 votes
2 answers
2k views

Access Denied to server linux SSH [closed]

I can't access the server using ssh user@IP with the right password i get access denied even though the sshd config is set correctly i restarted it reloaded nothing worked. I generated an rsa key over ...
Zineb BAGHDADI's user avatar
2 votes
1 answer
93 views

How to setup ssh for a couple of servers?

I'm pretty confused about how ssh really works, and I have already asked a couple of questions related to this, but I suspect I'm going in the XY-problem trap. So, what I want is this. I want to be ...
klutt's user avatar
  • 167
-1 votes
3 answers
2k views

Unable to SSH into Centos server unless root user

I have a digital ocean droplet that currently allows me to login directly via the root user via SSH as the relevant keys have been added to the authorized_keys file. ssh root@master // this works ...
Zabs's user avatar
  • 191
-1 votes
1 answer
11k views

Generating SSH keys for multiple users?

Say, I have a server (CentOS 7) where currently I'm the only user, and have SSH key based authentication set up, it works perfectly. But what if I want to add more users (not many, say, 5 more) to the ...
user avatar
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 ...
Sredny M Casanova's user avatar
0 votes
2 answers
2k views

Debug SSH not connecting

I am trying to connect to the remote server using ssh, but I have Permission denied (publickey).. I've gone through all possible reasons I can suggest and other questions suggest. I am sure that my ...
confused-demon's user avatar
0 votes
1 answer
7k views

Disconnected no supported authentication methods available

Yes, I'm aware questions like this already exist, and I've already checked quite a few out, but the methods were unable to help me. I am running CentOS 6 on my VPS. This error occurs when I try to log ...
Arraying's user avatar
0 votes
1 answer
71 views

Generating ssh Keys for different user Accounts for an application inside a single box

What would be the Procedure to generate ssh-keys for multiple user accounts (like root/admin/oracle accounts) assuming all the user accounts reside inside the same box. How can the keys be ...
Harshith Mulky's user avatar
1 vote
1 answer
211 views

CentOS - Pubkey Auth doesn't work for user in /var

I've been working through a problem for the past week or so and I am running out of ideas. I added a new user on my Centos 7 VPS for a git server, and (under the advice of several articles) placed ...
forresthopkinsa's user avatar
3 votes
2 answers
14k views

Cannot ssh with shared keys on CentOS 7 server refused our key

I cannot ssh to a CentOS 7 server using pre-shared keys, I get a "server refused our key" message. Below is an ssh attempt using -vv OpenSSH_7.2p2, OpenSSL 1.0.2h-fips 3 May 2016 debug1: Reading ...
feub's user avatar
  • 169
2 votes
1 answer
4k views

SSH with DSA 2048 bits key

I need to set up secure connection through ssh keys, prerequisites are : DSA type number of bits : 2048 Passphrase : yes On my Linux I can't create this kind of key, the man says : DSA keys must ...
tonio94's user avatar
  • 145
4 votes
2 answers
21k views

Add remote host to known_hosts file without prompt [duplicate]

I wrote some scripts and wish to add a remote host to my known_hosts file without any interaction. I can run a command like ssh -o "StrictHostKeyChecking no" [email protected] which will add the remote ...
VenomFangs's user avatar
4 votes
2 answers
2k views

SSH authentication between my VPS and Bitbucket fail

I'm trying to setup SSH authentication between my VPS and Bitbucket for configure later automatic deployment via Capistrano (for web projects) and Capifony (for Symfony2 projects) so I follow this ...
ReynierPM's user avatar
  • 720
0 votes
1 answer
10k views

SSH "Server refused our key" for all users except root user [closed]

I followed this tutorial and key authentication worked great for root. but when I created user xxx and added different key in authorized_keys and tried to login using putty where error was shown " ...
Ashwin Mekala's user avatar
2 votes
3 answers
539 views

Disabled root login for SSH in Centos 5.9, key login no longer working

I have a Centos 5.9 server which I have previously configured to access via SSH key login and this has been working fine for many months. I recently had to have an issue resolved remotely which ...
Rick Curran's user avatar
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 ...
anthonysomerset's user avatar
0 votes
1 answer
130 views

configuration files and ssh keys are being reset

I own a Centos 6.4 OS. I have standard lamp stack installed. Apache 2.2, PHP54 and mysql 5.5. I have also uploaded a public key into my authorized file in .ssh. I have my document root set in my httpd....
Seph's user avatar
  • 101
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 ...
user2887201's user avatar
2 votes
2 answers
6k views

How to ssh into ec2 instance running centos as a newly created user?

I am able to ssh into an ec2 instance as the root user using the private key .pem that was generated when I created the instance. $ ssh -i Desktop/key.pem [email protected] I ...
user784637's user avatar
  • 1,562
0 votes
2 answers
263 views

Is it "safe" to allow external access via SSH if authorized keys are required? [closed]

CentOS 6 | OpenSSH I have an external facing server and would like the convenience of being able to access it via my phone. The system itself is an island and has no association/connection to my ...
Mike B's user avatar
  • 11.9k
9 votes
1 answer
3k views

CentOS is ignoring my public key

I am trying to connect to my own CentOS server using SSH; I am able to connect fine with a password; I am trying to connect with my public key, but the server does not attempt public key ...
ILikeFood's user avatar
  • 399
1 vote
3 answers
503 views

How to disable ssh keys and log-in using password

I'm having a tricky situation. First I set-up a ssh access through keys and I forgot password for "keys", and then I couldn't connect. I tried to login using another computer, and I thought I would ...
user1260776's user avatar
-1 votes
3 answers
512 views

sudo password with key authentication

I'm logging into my CentOS server using key authentication. I'm attempting to sudo a command but I don't know what the password is! How can I find this?
Icode4food's user avatar
133 votes
4 answers
323k views

how do you create an ssh key for another user?

I'm trying to create an ssh key for another user. I'm logged in as root. Can I just edit the files generated by ssh-keygen and change root to the user I want?
user962449's user avatar
  • 1,457
0 votes
4 answers
2k views

ssh-keygen problem

I have configured the ssh-key using keygen for password less authenticaton as from the following link http://rcsg-gsir.imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html nO matter what i do this ...
Rajeev's user avatar
  • 251