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
RSA_check_key(3)						      OpenSSL							  RSA_check_key(3)

NAME
RSA_check_key - validate private RSA keys SYNOPSIS
#include <openssl/rsa.h> int RSA_check_key(RSA *rsa); DESCRIPTION
This function validates RSA keys. It checks that p and q are in fact prime, and that n = p*q. It also checks that d*e = 1 mod (p-1*q-1), and that dmp1, dmq1 and iqmp are set correctly or are NULL. As such, this function can not be used with any arbitrary RSA key object, even if it is otherwise fit for regular RSA operation. See NOTES for more information. RETURN VALUE
RSA_check_key() returns 1 if rsa is a valid RSA key, and 0 otherwise. -1 is returned if an error occurs while checking the key. If the key is invalid or an error occurred, the reason code can be obtained using ERR_get_error(3). NOTES
This function does not work on RSA public keys that have only the modulus and public exponent elements populated. It performs integrity checks on all the RSA key material, so the RSA key structure must contain all the private key data too. Unlike most other RSA functions, this function does not work transparently with any underlying ENGINE implementation because it uses the key data in the RSA structure directly. An ENGINE implementation can override the way key data is stored and handled, and can even provide support for HSM keys - in which case the RSA structure may contain no key data at all! If the ENGINE in question is only being used for acceleration or analysis purposes, then in all likelihood the RSA key data is complete and untouched, but this can't be assumed in the general case. BUGS
A method of verifying the RSA key using opaque RSA API functions might need to be considered. Right now RSA_check_key() simply uses the RSA structure elements directly, bypassing the RSA_METHOD table altogether (and completely violating encapsulation and object-orientation in the process). The best fix will probably be to introduce a "check_key()" handler to the RSA_METHOD function table so that alternative implementations can also provide their own verifiers. SEE ALSO
rsa(3), ERR_get_error(3) HISTORY
RSA_check_key() appeared in OpenSSL 0.9.4. 50 2013-03-05 RSA_check_key(3)
All times are GMT -4. The time now is 02:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy