Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Secure Shell

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2015, 07:15 PM
DratRat847 DratRat847 is offline
Registered User
 
Join Date: Jun 2015
Posts: 1
Public Key Authentication Failed

I have read easily over 150+ web results and tried at least 30+ methods for resolving my issue. After what is now 12-14 hours of struggling to no avail, I'm seeking help.

I have a CentOS (OpenSSH) virutal server from GoDaddy. Latest version of SecureCRT.

I've created keys using SSH (ssh-keygen) command, WHM GUI, SecureCRT's creation, and PuTTY. Uploaded them to ~/.ssh or copied from there. Made sure they match to ~/.ssh/authorized_keys. I've 'chmod 700 ~/.ssh' and 'chmod 600 ~/.ssh/authorized_keys. I've attempted other methods as well. Most recently 'restorecon -r' or whatever it was. My brain is pretty much dead at this point and I've spent about my whole weekend trying to figure out my problem.

I'm willing to start over from scratch and figure out how to fix this. Please and thank you for any help!
Reply With Quote
  #2  
Old 06-15-2015, 07:25 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,997
Hello DratRat847,

I am sorry to hear of the difficulties you have experienced.

Quote:
I have a CentOS (OpenSSH) virutal server from GoDaddy. Latest version of SecureCRT.
By I have a CentOS virtual server, do you mean that is the remote server you are trying to connect and authenticate to?

Or is SecureCRT installed on this virtual server?

Putty's keys won't work, but the ones created via ssh-keygen or in SecureCRT should be fine although I don't understand the procedure you say you followed:

Quote:
Uploaded them to ~/.ssh or copied from there. Made sure they match to ~/.ssh/authorized_keys.
If the CentOS virtual server is the remote server, assuming OpenSSH is running on that server, the public-key file will need appended to the authorized_keys file. See the SecureCRT Help topic Secure Connections / Public-Key Authentication for SSH2 / Configure OpenSSH to Recognize Your Public-Key File.

If the CentOS virtual server is instead where SecureCRT is installed and running, then that is when the keypair you created needs to be located in ~/.ssh and the remote server will *still* need to be configured with the public-key file (per above reference).
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply

Tags
openssh , sshkey


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:37 AM.