Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Server refused our key - Centos 7 Post 303025637 by Chiadi on Thursday 8th of November 2018 07:57:53 AM
Old 11-08-2018
Server refused our key - Centos 7

I generated rsa key-pair, Using puttygen.exe running on windows, I imported the private key and tried to use it to login to a CentOS Linux release 7.5.1804 (Core) (running on VirtualBox) and it gives the following error: "server refused our key".
I tried to search for solution and some of the recommendations were to chmod of .ssh directory to 700 while authorized_keys is set at 600. I wish to say that I actually created the authorized_keys directory under .ssh directory.
I also generated rsa keys with puttygen.exe and copied the public key to my linux machine and tested, but the error remains.
Please could anyone offer some assistance.
Thanks in advance.

Chiadi

------ Post updated at 12:57 PM ------

Thanks all; got it figured out. The problem was creating a directory instead of a file.
I wish to say that I actually created the authorized_keys directory under .ssh directory.
Thanks all once more.
This User Gave Thanks to Chiadi For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

X-server fatal error,KDM refused to start

I was working with network configuration utility of linux first by netconfig command and then in GUI.It refused to take the new IP address I assigned and GUI utility raised an exception.aAfter that I tried to luanch the application for a couple of times but it was not starting.I rebooted. Now it... (1 Reply)
Discussion started by: callmedctr
1 Replies

2. Shell Programming and Scripting

Connection refused to ftp from a unix server to a windows pc

I need your help please. In order to run a script after a ftp connection, ive got initially this problem: from unix pc machine to a Unix server i could ftp succesfully but in reverse (i mean from unix to pc machine i cant ftp. The error message is this ftp 192.168.29.90 ftp: connect: Connection... (1 Reply)
Discussion started by: alexcol
1 Replies

3. AIX

SSH has this error: "server refused our key"

I did successful yestday as Porter's doc: 1. Create private/pub key on AIX: $ssh-keygen -t identity 2. Get my private key from the AIX server, found in $HOME/.ssh/identity Put that on Windows box. I use WinSCP to transfer private key from AIX to Windows 3. Run puttygen.exe and... (8 Replies)
Discussion started by: rainbow_bean
8 Replies

4. Linux

Server refused to allocate pty in linux

Hi, I am getting this error "Server refused to allocate pty" and Not able to login and I have to restart the server, this works fine for one day again 2 nd day when I am trying to login I am getting this error "Server refused to allocate pty", Can any body suggest me how to resolve this... (1 Reply)
Discussion started by: manoj.solaris
1 Replies

5. Solaris

Xlib: connection refused by server

Hi guys i am facing this issue while opening new xterm window.please help me out. Xlib: connection to "delop125ld:0.0" refused by server Xlib: Maximum number of clients reached xterm Xt error: Can't open display: delop125ld:0.0 thanks (1 Reply)
Discussion started by: daya.pandit
1 Replies

6. UNIX for Advanced & Expert Users

Server refused to allocate pty

I know there is a thread on the subject but is not related to solaris so I am posting this question for help I have a solaris 8 machine. I can log in through the console but when trying to log in through putty/telnet after accepting username and password it gives the follwing error "Server... (2 Replies)
Discussion started by: Tirmazi
2 Replies

7. Solaris

Solaris 8 ssh public key authentication issue - Server refused our key

Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks. ... (1 Reply)
Discussion started by: aixlover
1 Replies

8. AIX

FTP connection refused from text editor while accessing AIX server .

HI , I'm facing the FTP connection refused from text editor while accessing AIX server .It showing the messege "can't create ftp connection connectin refused".Though it is accessible from putty . i'm using aix version 6 . Can any one let me know the seetings needs to be made so that i... (2 Replies)
Discussion started by: rmkganesh
2 Replies

9. Linux

Generate public key to connect from one ftp server to other server

How to generate public key to connect from one ftp server to other server to use in scripting. (0 Replies)
Discussion started by: sridhardwh
0 Replies

10. Solaris

Tcp Socket (Connection refused) to my server box

I installed a fresh copy of Solaris 7 and present up my ip and domain for my web services but when I try to connect to it I get the following error; TCPActiveOpen: connect failed tcp/192.168.1.148/7900: 146 (Connection refused). the port is open in my router but I don't no were to add it in... (5 Replies)
Discussion started by: Wpgn
5 Replies
chkey(1)						      General Commands Manual							  chkey(1)

NAME
chkey - change user's secure RPC key pair SYNOPSIS
[ ] [ DESCRIPTION
is used to change a user's secure RPC public key and secret key pair. prompts for the old secure-rpc password and verifies that it is cor- rect by decrypting the secret key. If the user has not already used to decrypt and store the secret key with registers the secret key with the local daemon. If the secure- rpc password does not match the login password, prompts for the login password. uses the login password to encrypt the user's secret Diffie-Hellman (192 bit) cryptographic key. ensures that the login password and the secure-rpc password are kept the same. The key pair can be stored in the file (see publickey(4)), the NIS map, or entries in the LDAP directory. If a new secret key is gener- ated, it will be registered with the local daemon. If the source of the is not specified with the option, consults the entry in the name service switch configuration file (see nss- witch.conf(4)). If the entry specifies one and only one source, then will change the key in the specified name service. However, if mul- tiple name services are listed, cannot decide which source to update and will display an error message. The user should specify the source explicitly with the option. Non root users are not allowed to change their key pair in the file. Options Re-encrypt the existing secret key with the user's login password. Update the NIS database. Update the database. Update the LDAP database. WARNINGS
HP-UX 11i Version 2 is the last HP-UX release on which NIS+ is supported. LDAP is the recommended replacement for NIS+. HP fully supports the industry standard naming services based on LDAP. AUTHOR
was developed by Sun Microsystems, Inc. FILES
SEE ALSO
keylogin(1), keylogout(1), keyserv(1M), newkey(1M), nsswitch.conf(4), publickey(4). chkey(1)
All times are GMT -4. The time now is 05:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy